From d6a0b3031f0b92ac8ac3d18277efe04eb902a94d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 16 Jun 2020 21:08:21 -0500 Subject: 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. --- scripts/test.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') 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 ] -- cgit v1.2.3