1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 00:39:31 +08:00

sharness/t0010: also check 'echo stuff | $cmd --help'

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder
2018-03-20 22:00:24 +01:00
parent 1bb3abafe2
commit 8a2035eaa2

View File

@ -67,6 +67,8 @@ test_expect_success "All commands accept --help" '
do
$cmd --help >/dev/null ||
{ echo "$cmd doesnt accept --help"; echo 1 > fail; }
echo stuff | $cmd --help >/dev/null ||
{ echo "$cmd doesnt accept --help when using stdin"; echo 1 > fail; }
done <commands.txt
if [ $(cat fail) = 1 ]; then