mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 19:07:48 +08:00
commit
8dbdb29576
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user