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:
@ -67,6 +67,8 @@ test_expect_success "All commands accept --help" '
|
|||||||
do
|
do
|
||||||
$cmd --help >/dev/null ||
|
$cmd --help >/dev/null ||
|
||||||
{ echo "$cmd doesnt accept --help"; echo 1 > fail; }
|
{ 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
|
done <commands.txt
|
||||||
|
|
||||||
if [ $(cat fail) = 1 ]; then
|
if [ $(cat fail) = 1 ]; then
|
||||||
|
Reference in New Issue
Block a user