tests: exit with error code if failure when running all tests
Tests / tests (pull_request) Failing after 5s

This commit is contained in:
HEL
2026-07-08 16:20:44 +02:00
parent c2ebf885ac
commit 1162716a25
+2
View File
@@ -1,3 +1,4 @@
import sys
from typing import Type
from midas.cli.ansi import Ansi
@@ -37,6 +38,7 @@ def main():
print(Ansi.FG(Ansi.BRIGHT_GREEN) + "All tests passed!" + Ansi.RESET)
else:
print(Ansi.FG(Ansi.BRIGHT_RED) + "Some tests failed!" + Ansi.RESET)
sys.exit(1)
if __name__ == "__main__":