Skip to content

Commit

Permalink
sharness/t0010: also check 'echo stuff | $cmd --help'
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
  • Loading branch information
chriscool committed Mar 20, 2018
1 parent b411d8d commit ec686b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/sharness/t0010-basic-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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; echo 1 > fail; }
done <commands.txt
if [ $(cat fail) = 1 ]; then
Expand Down

0 comments on commit ec686b8

Please sign in to comment.