Install QEMU's virtio-vga display and check for it

The smoketest VMs start with -vga virtio, but Arch packages that display
apart from qemu-base, so the base image build failed with "Virtio VGA not
available". update.sh now installs qemu-hw-display-virtio-vga, and doctor
and smoketest run check QEMU has the display before anything downloads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-04 20:04:39 -07:00
co-authored by Claude Opus 5.5
parent b41b70619d
commit 2207208326
8 changed files with 45 additions and 5 deletions
+12
View File
@@ -71,3 +71,15 @@ load test_helper
[[ "$output" == *"Usage: coredesktop-dev doctor"* ]]
not_called flatpak-spawn
}
@test "doctor reports QEMU without the virtio-vga display" {
make_working_copy
stub qemu-system-x86_64 'echo "name \"VGA\", bus PCI"'
run cdd doctor
[ "$status" -eq 1 ]
[[ "$output" == *"PROBLEM QEMU has no virtio-vga display"* ]]
stub qemu-system-x86_64 'echo "name \"virtio-vga\", bus PCI"'
run cdd doctor
[[ "$output" == *"ok QEMU has the virtio-vga display"* ]]
}