Show exception on test failure

pull/545/head
Ivan Habunek 2025-08-06 09:42:46 +02:00
rodzic 614680b6d4
commit 9c15d2ca16
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 01DB3DD0D824504C
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -159,4 +159,8 @@ def posted_status_id(out):
def assert_ok(result: Result):
if result.exit_code != 0:
raise AssertionError(f"Command failed with exit code {result.exit_code}\nStderr: {result.stderr}")
raise AssertionError(
f"Command failed with exit code {result.exit_code}\n"
f"stderr: {result.stderr}\n"
f"exception: {result.exception}"
)