diff --git a/test/sharness/t0010-basic-commands.sh b/test/sharness/t0010-basic-commands.sh index a4d561435..3966d2c0d 100755 --- a/test/sharness/t0010-basic-commands.sh +++ b/test/sharness/t0010-basic-commands.sh @@ -17,8 +17,7 @@ test_expect_success "ipfs version succeeds" ' ' test_expect_success "ipfs --version success" ' - ipfs --version || - test_fsh ipfs --version + ipfs --version ' test_expect_success "ipfs version output looks good" ' @@ -65,9 +64,26 @@ test_expect_success "'ipfs commands' output looks good" ' test_expect_success "All commands accept --help" ' while read -r cmd do - echo "running: $cmd --help" - $cmd --help /dev/null || return + $cmd --help /dev/null || + { echo $cmd doesnt accept --help; FAIL=1; } done /dev/null || + { echo missing $cmd from helptext; FAIL=1; } + done + + if [ ${FAIL-0} = 1 ]; then + return 1 + fi ' test_expect_success "'ipfs commands --flags' succeeds" ' @@ -80,4 +96,6 @@ test_expect_success "'ipfs commands --flags' output looks good" ' grep "ipfs repo gc --quiet / ipfs repo gc -q" commands.txt ' + + test_done