diff options
author | Rob Landley <rob@landley.net> | 2020-06-16 21:08:21 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-06-16 21:14:35 -0500 |
commit | d6a0b3031f0b92ac8ac3d18277efe04eb902a94d (patch) | |
tree | d2416af0aeb173b177081bccfbd1d2a1723870ca /scripts | |
parent | 399c73488b0e554ee9bf3bd83ea6900aa516f774 (diff) | |
download | toybox-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-x | scripts/test.sh | 2 |
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 ] |