From 34b6503fe0753feeedb6df7af9b64c021e4b7c85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20K=C3=BCnzel?= <simonk@fsmpi.rwth-aachen.de>
Date: Thu, 23 May 2024 19:33:01 +0200
Subject: [PATCH] Fix missing exit in python. Now it should fail!

---
 src/run_tests.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/run_tests.py b/src/run_tests.py
index b2b245a..83e03c5 100644
--- a/src/run_tests.py
+++ b/src/run_tests.py
@@ -6,4 +6,5 @@ if __name__ == '__main__':
     app.api_app.testing = True
     # This is always run from src/
     suite = unittest.defaultTestLoader.discover("../tests/", pattern="*", top_level_dir="../tests")
-    unittest.TextTestRunner(verbosity=2, failfast=True).run(suite)
+    if not unittest.TextTestRunner(verbosity=2, failfast=True).run(suite).wasSuccessful():
+        exit(-1)
-- 
GitLab