Do not re-run tests if they failed already
[pyi2ncommon] / 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