Merge pull request #4849 from ipfs/no-dev-null-pipe

No dev null pipe
This commit is contained in:
Whyrusleeping 2018-03-23 09:41:04 -07:00 committed by GitHub
commit 8dbdb29576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,8 +65,10 @@ test_expect_success "All commands accept --help" '
echo 0 > fail
while read -r cmd
do
$cmd --help </dev/null >/dev/null ||
$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