From 3bb59efade58f08dc6ed75bbacaf0f2ae1ed2a53 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 19 Mar 2018 16:00:51 -0700 Subject: [PATCH] add sharness test for #4837 License: MIT Signed-off-by: Steven Allen --- test/sharness/t0100-name.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/sharness/t0100-name.sh b/test/sharness/t0100-name.sh index d32b5101e..367262d4a 100755 --- a/test/sharness/t0100-name.sh +++ b/test/sharness/t0100-name.sh @@ -99,6 +99,12 @@ test_expect_success "'ipfs name publish' fails" ' printf '' | test_expect_code 1 ipfs name publish >publish_out 2>&1 ' +test_expect_success "'ipfs name publish --help' succeeds" ' + PEERID=`ipfs id --format=""` && + test_check_peerid "${PEERID}" && + ipfs name publish --help +' + test_expect_success "publish output has the correct error" ' grep "argument \"ipfs-path\" is required" publish_out '