From 0896279fcf6d8d17273d83892dff1763558db77e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 24 Mar 2016 15:55:53 +0100 Subject: report standards-compliance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- echo-test/test | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'echo-test/test') diff --git a/echo-test/test b/echo-test/test index dd43ea1..955a94e 100755 --- a/echo-test/test +++ b/echo-test/test @@ -25,7 +25,14 @@ for f in $@; do report $? "$f" done ) | tee result -! grep FAILED < result >/dev/null +! grep FAILED < result > /dev/null ret=$? +if test $ret != 0; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + ret=1 + else + ret=2 + fi +fi rm result exit $ret -- cgit v1.2.3-70-g09d2