aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-06-16 21:08:21 -0500
committerRob Landley <rob@landley.net>2020-06-16 21:14:35 -0500
commitd6a0b3031f0b92ac8ac3d18277efe04eb902a94d (patch)
treed2416af0aeb173b177081bccfbd1d2a1723870ca /scripts
parent399c73488b0e554ee9bf3bd83ea6900aa516f774 (diff)
downloadtoybox-d6a0b3031f0b92ac8ac3d18277efe04eb902a94d.tar.gz
Have "make tests" fail if any of the tests failed.
This is sort of a hack because I want to move the individual tests to subshells, which means they don't have a shared shell context. Functions and variables not persisting into later tests is a good thing (test environments polluting each other), but it makes accumulating FAILCOUNT more awkward.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/test.sh b/scripts/test.sh
index 20f76d09..cdfe3bdb 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -60,3 +60,5 @@ else
do_test "$i"
done
fi
+
+[ $FAILCOUNT -eq 0 ]