Skip to content

Commit

Permalink
tests: save mismatching window content to ease debugging
Browse files Browse the repository at this point in the history
(cherry picked from commit 6f6b461)
  • Loading branch information
marmarek committed May 13, 2023
1 parent d6634f1 commit ebef0ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion qubes/tests/integ/vm_qrexec_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,12 @@ async def _test_300_bug_1028_gui_memory_pinning(self):
await proc.wait()

if vm_image != dom0_image:
self.fail("Dom0 window doesn't match VM window content")
file_basename = f"/tmp/window-dump-{self.id()}-"
with open(file_basename + "vm", "wb") as f:
f.write(vm_image)
with open(file_basename + "dom0", "wb") as f:
f.write(dom0_image)
self.fail(f"Dom0 window doesn't match VM window content, saved to {file_basename}*")

class TC_10_Generic(qubes.tests.SystemTestCase):
def setUp(self):
Expand Down

0 comments on commit ebef0ed

Please sign in to comment.