Do not re-run tests if they failed already
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 15 Sep 2021 08:04:25 +0000 (10:04 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 15 Sep 2021 08:04:25 +0000 (10:04 +0200)
run_unittests.sh

index bca28f7..7424d6c 100755 (executable)
@@ -30,6 +30,9 @@ esac
 
 # run unittests in regular environment
 $cmd
+if [[ $? != 0 ]]; then
+    exit 1;
+fi
 
 # re-run with minimal local to capture errors caused by stdout being bytes
 LANG=C $cmd