From d27c5856de45203ae204248ee8dcbd1224a98377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Thu, 14 May 2026 13:51:36 +0200 Subject: [PATCH] debug mode --- system/lib.py | 4 ++-- system/run.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/system/lib.py b/system/lib.py index 6b79d3de..12836c1f 100644 --- a/system/lib.py +++ b/system/lib.py @@ -164,10 +164,10 @@ class BaseTest(object): self.run() self.check() except Exception as exc: - if self.debugOutput: - print(f"API log:\n{self.debug_output()}") raise exc finally: + if self.debugOutput: + print(f"API log:\n{self.debug_output()}") self.teardown() def prepare_remove_all(self): diff --git a/system/run.py b/system/run.py index 2b0de524..56c39160 100755 --- a/system/run.py +++ b/system/run.py @@ -155,6 +155,7 @@ def run(include_long_tests=False, capture_results=False, tests=None, filters=Non traceback.print_exception(typ, val, tb, file=orig_stdout) else: orig_stdout.write(colored("\b\b\b\bOK", color="green", attrs=["bold"]) + f" {duration}\n") + orig_stdout.write(testout.get_contents()) t.shutdown()