diff --git a/test/sharness/t0040-add-and-cat.sh b/test/sharness/t0040-add-and-cat.sh index dc80763f8..d2be8b399 100755 --- a/test/sharness/t0040-add-and-cat.sh +++ b/test/sharness/t0040-add-and-cat.sh @@ -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 '