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
No known key found for this signature in database
GPG key ID: 69165158F05265DF

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