mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-28 12:06:38 +03:00
nixosTests: Reraise exception in subtests
This commit is contained in:
parent
8aee1600f6
commit
b139bc0d87
1 changed files with 2 additions and 4 deletions
|
@ -905,10 +905,8 @@ def subtest(name: str) -> Iterator[None]:
|
||||||
yield
|
yield
|
||||||
return True
|
return True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
failed_tests.append(
|
log.log(f'Test "{name}" failed with error: "{e}"')
|
||||||
'Test "{}" failed with error: "{}"'.format(name, str(e))
|
raise e
|
||||||
)
|
|
||||||
log.log("error: {}".format(str(e)))
|
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue