test: use a plain VGA device to show the restored system

virtio-vga shows its old VGA framebuffer after a restore and never repaints,
which left a stale screen in the recording and sample machine whether or not
bootvine ran. A plain VGA device repaints, so the recording can run through to
the restored login prompt.
This commit is contained in:
Willem Vanhulle committed 2026-11-02 19:29:05 +01:00
1 parent 4e5e6d96b7
commit 29849c6254
3 files changed
+18 -3

No files matched your search

+2 -1
View File
@@ -34,11 +34,12 @@ machine.start()
resume_recording.start()
machine.wait_for_console_text("Image loading progress")
machine.wait_for_console_text("Image loading done")
resume_recording.stop()
machine.succeed(f"grep '{SENTINEL_TEXT}' /run/test/sentinel")
assert console_level() == BOOT_CONSOLE_LEVEL, f"the restored system kept the opened level: {console_level()}"
assert foreground_terminal() != f"tty{BOOTVINE_TERMINAL}", "the restored system came back on bootvine's terminal"
machine.fail("systemctl is-active bootvine")
machine.sleep(1)
resume_recording.stop()
machine.crash()
machine.start()