Skip to content

Commit 8a2035e

Browse files
committed
sharness/t0010: also check 'echo stuff | $cmd --help'
License: MIT Signed-off-by: Christian Couder <[email protected]>
1 parent 1bb3aba commit 8a2035e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/sharness/t0010-basic-commands.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ test_expect_success "All commands accept --help" '
6767
do
6868
$cmd --help >/dev/null ||
6969
{ echo "$cmd doesnt accept --help"; echo 1 > fail; }
70+
echo stuff | $cmd --help >/dev/null ||
71+
{ echo "$cmd doesnt accept --help when using stdin"; echo 1 > fail; }
7072
done <commands.txt
7173
7274
if [ $(cat fail) = 1 ]; then

0 commit comments

Comments
 (0)