mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 11:57:44 +08:00
test: add test for ipfs add --quieter
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
38fc8131bf
commit
40cc4dc024
@ -367,6 +367,15 @@ add_directory() {
|
||||
test_cmp expected actual
|
||||
'
|
||||
|
||||
test_expect_success "ipfs add --quieter succeeds" '
|
||||
ipfs add -r -Q $EXTRA_ARGS mountdir/planets >actual
|
||||
'
|
||||
|
||||
test_expect_success "ipfs add --quieter returns only one correct hash" '
|
||||
echo "$PLANETS" > expected &&
|
||||
test_cmp expected actual
|
||||
'
|
||||
|
||||
test_expect_success "cleanup" '
|
||||
rm -r mountdir/planets
|
||||
'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user