nixos/test-runner: Print exceptions that happen

This commit is contained in:
Janne Heß
2021-10-14 00:15:53 +02:00
parent 09236e7b61
commit 540dc908ca

View File

@@ -1126,9 +1126,9 @@ class Driver:
try:
yield
return True
except:
rootlog.error(f'Test "{name}" failed with error:')
raise
except Exception as e:
rootlog.error(f'Test "{name}" failed with error: "{e}"')
raise e
def test_symbols(self) -> Dict[str, Any]:
@contextmanager