@cryptotaxi247 / kubo / commits / 8a2035eaa

sharness/t0010: also check 'echo stuff | $cmd --help'

License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Mar 20, 2018 at 22:00 UTC 8a2035eaa269d9efd83e57a207befa31197791f2
1 file changed +2
test/sharness/t0010-basic-commands.sh
+2
@@ -67,6 +67,8 @@ test_expect_success "All commands accept --help" '
67 do
68 $cmd --help >/dev/null ||
69 { 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; }
72 done <commands.txt
73
74 if [ $(cat fail) = 1 ]; then