From 8a2035eaa269d9efd83e57a207befa31197791f2 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Tue, 20 Mar 2018 22:00:24 +0100 Subject: [PATCH] sharness/t0010: also check 'echo stuff | $cmd --help' License: MIT Signed-off-by: Christian Couder --- test/sharness/t0010-basic-commands.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/sharness/t0010-basic-commands.sh b/test/sharness/t0010-basic-commands.sh index 822893e78..8fff34c45 100755 --- a/test/sharness/t0010-basic-commands.sh +++ b/test/sharness/t0010-basic-commands.sh @@ -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 when using stdin"; echo 1 > fail; } done