aboutsummaryrefslogtreecommitdiffstats
path: root/true-test
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-24 15:55:53 +0100
committerMattias Andrée <maandree@kth.se>2016-03-24 15:55:53 +0100
commit0896279fcf6d8d17273d83892dff1763558db77e (patch)
tree7e6f09f0a480658f97680cb87d0cfbbb881d9106 /true-test
parentadd EPATH variable (diff)
downloadbase-util-tests-0896279fcf6d8d17273d83892dff1763558db77e.tar.gz
base-util-tests-0896279fcf6d8d17273d83892dff1763558db77e.tar.bz2
base-util-tests-0896279fcf6d8d17273d83892dff1763558db77e.tar.xz
report standards-compliance
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rwxr-xr-xtrue-test/test9
1 files changed, 8 insertions, 1 deletions
diff --git a/true-test/test b/true-test/test
index 4ff838a..0b26a05 100755
--- a/true-test/test
+++ b/true-test/test
@@ -75,7 +75,14 @@ for f in $@; do
$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