提交 30039a78 作者: Christian Couder

sharness/t0010: quote error messages

License: MIT
Signed-off-by: 's avatarChristian Couder <chriscool@tuxfamily.org>
上级 3a00b7dc
......@@ -66,7 +66,7 @@ test_expect_success "All commands accept --help" '
while read -r cmd
do
$cmd --help </dev/null >/dev/null ||
{ echo $cmd doesnt accept --help; echo 1 > fail; }
{ echo "$cmd doesnt accept --help"; echo 1 > fail; }
done <commands.txt
if [ $(cat fail) = 1 ]; then
......@@ -80,7 +80,7 @@ test_expect_failure "All ipfs root commands are mentioned in base helptext" '
while read cmd
do
grep " $cmd" help.txt > /dev/null ||
{ echo missing $cmd from helptext; echo 1 > fail; }
{ echo "missing $cmd from helptext"; echo 1 > fail; }
done
if [ $(cat fail) = 1 ]; then
......@@ -94,7 +94,7 @@ test_expect_failure "All ipfs commands docs are 80 columns or less" '
do
LENGTH="$($cmd --help | awk "{ print length }" | sort -nr | head -1)"
[ $LENGTH -gt 80 ] &&
{ echo "$cmd" help text is longer than 79 chars "($LENGTH)"; echo 1 > fail; }
{ echo "$cmd help text is longer than 79 chars ($LENGTH)"; echo 1 > fail; }
done <commands.txt
if [ $(cat fail) = 1 ]; then
......@@ -107,7 +107,7 @@ test_expect_success "All ipfs commands fail when passed a bad flag" '
while read -r cmd
do
test_must_fail $cmd --badflag >/dev/null ||
{ echo $cmd exit with code 0 when passed --badflag; echo 1 > fail; }
{ echo "$cmd exit with code 0 when passed --badflag"; echo 1 > fail; }
done <commands.txt
if [ $(cat fail) = 1 ]; then
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论