提交 628e458e 作者: Jakub Sztandera

Add regression sharness test for ipfs init

This tests expects ipfs init with no arguments to work
even with occuipied stdin.
License: MIT
Signed-off-by: 's avatarJakub Sztandera <kubuxu@protonmail.ch>
上级 6822c0c6
...@@ -6,14 +6,6 @@ ...@@ -6,14 +6,6 @@
# #
# Based on the Bash documentation example. # Based on the Bash documentation example.
# Hello Chet,
# please find attached a "little easier" :-) to comprehend
# time-out example. If you find it suitable, feel free to include
# anywhere: the very same logic as in the original examples/scripts, a
# little more transparent implementation to my taste.
#
# Dmitry V Golovashkin <Dmitry.Golovashkin@sas.com>
scriptName="${0##*/}" scriptName="${0##*/}"
declare -i DEFAULT_TIMEOUT=9 declare -i DEFAULT_TIMEOUT=9
......
...@@ -8,4 +8,10 @@ test_init_ipfs ...@@ -8,4 +8,10 @@ test_init_ipfs
# Tests go here # Tests go here
test_expect_success "ipfs init with occupied input works - #2748" '
export IPFS_PATH="ipfs_path"
echo "" | time-out ipfs init &&
rm -rf ipfs_path
'
test_done test_done
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论