From 8ece857da951a565700944da56507bf5ea36ccdc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Mar 2016 00:48:24 +0100 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- __sum/__test | 2 +- cksum-test/test | 2 +- echo-test/test | 2 +- false-test/test | 2 +- patch-test/test | 2 +- test-all | 6 +++--- test-test/test | 2 +- true-test/test | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/__sum/__test b/__sum/__test index 1483f76..51678fe 100755 --- a/__sum/__test +++ b/__sum/__test @@ -164,7 +164,7 @@ done ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 diff --git a/cksum-test/test b/cksum-test/test index 37a62b8..b1de5e2 100755 --- a/cksum-test/test +++ b/cksum-test/test @@ -91,7 +91,7 @@ done ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 diff --git a/echo-test/test b/echo-test/test index 955a94e..3ff1762 100755 --- a/echo-test/test +++ b/echo-test/test @@ -28,7 +28,7 @@ done ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 diff --git a/false-test/test b/false-test/test index 73abf08..b7b0798 100755 --- a/false-test/test +++ b/false-test/test @@ -78,7 +78,7 @@ done ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 diff --git a/patch-test/test b/patch-test/test index ea0b250..2e8b994 100755 --- a/patch-test/test +++ b/patch-test/test @@ -1669,7 +1669,7 @@ cat result1 result2 > result ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 diff --git a/test-all b/test-all index 60c2139..4b4f24a 100755 --- a/test-all +++ b/test-all @@ -33,10 +33,10 @@ for t in $@; do printf '\033[1mTesting %s ...\033[m\n' "$t" ./${t}-test/test r=$? - if test $r = 2; then - echo $t '(standards-compliant)' >> result - elif test $r -ge 1; then + if test $r -ge 2; then echo $t >> result + elif test $r = 1; then + echo $t '(standards-compliant)' >> result fi echo done diff --git a/test-test/test b/test-test/test index c524f15..d936077 100755 --- a/test-test/test +++ b/test-test/test @@ -570,7 +570,7 @@ done ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 diff --git a/true-test/test b/true-test/test index 0b26a05..c3ddd97 100755 --- a/true-test/test +++ b/true-test/test @@ -78,7 +78,7 @@ done ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 -- cgit v1.2.3-70-g09d2