提交 3bb59efa 作者: Steven Allen

add sharness test for #4837

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 7824c2cf
...@@ -99,6 +99,12 @@ test_expect_success "'ipfs name publish' fails" ' ...@@ -99,6 +99,12 @@ test_expect_success "'ipfs name publish' fails" '
printf '' | test_expect_code 1 ipfs name publish >publish_out 2>&1 printf '' | test_expect_code 1 ipfs name publish >publish_out 2>&1
' '
test_expect_success "'ipfs name publish --help' succeeds" '
PEERID=`ipfs id --format="<id>"` &&
test_check_peerid "${PEERID}" &&
ipfs name publish --help
'
test_expect_success "publish output has the correct error" ' test_expect_success "publish output has the correct error" '
grep "argument \"ipfs-path\" is required" publish_out grep "argument \"ipfs-path\" is required" publish_out
' '
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论