integration tests: don't shadow real error when screenshot fails (#1608)
This commit is contained in:
parent
00714c60ac
commit
8c4183f500
@ -51,6 +51,9 @@ def pytest_exception_interact(node, call, report):
|
||||
str(node.nodeid).strip().replace(" ", "_").replace(":", "_"),
|
||||
)
|
||||
|
||||
DISPLAY.waitgrab().save(
|
||||
(Path(screenshot_dir) / safe_filename).with_suffix(".png"),
|
||||
)
|
||||
try:
|
||||
DISPLAY.waitgrab().save(
|
||||
(Path(screenshot_dir) / safe_filename).with_suffix(".png"),
|
||||
)
|
||||
except Exception as e:
|
||||
print(f"Failed to take screenshot for {node}: {e}")
|
||||
|
Loading…
Reference in New Issue
Block a user