From 5a225172777eda244a70cde70a877221f5a6252f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 23 Mar 2016 13:41:07 +0100 Subject: patch-test: do not test that exit value is 2, test that is is greater than 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- patch-test/test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'patch-test/test') diff --git a/patch-test/test b/patch-test/test index edc5b78..d7df4bc 100755 --- a/patch-test/test +++ b/patch-test/test @@ -69,7 +69,7 @@ garbage () { cd 20 < patch sed 's/^/ /' | $p -o- old > /dev/null 2> tmp - test $? = 2 && grep 'contains only garbage' < tmp > /dev/null + test $? -gt 1 && grep 'contains only garbage' < tmp > /dev/null report $? "garbage" rm tmp cd .. @@ -1455,7 +1455,7 @@ pflag_excess () diff -u a/b/c/old a/b/c/new > patch-u mv a/b/c/old a/b/c/new . $fp -p1000 -o- < patch-u > /dev/null - test $? = 2 + test $? -gt 1 report $? "pflag_excess -u" cd .. rm -r tmp -- cgit v1.2.3-70-g09d2