Skip to content

Commit f29e428

Browse files
bdrungLaszloGombos
authored andcommitted
fix(test): only use QEMU machine q35 on x86
The QEMU machine `q35` is only available on x86: ``` qemu-system-aarch64: unsupported machine type Use -machine help to list supported machines ``` Signed-off-by: Benjamin Drung <[email protected]>
1 parent fb7d5ec commit f29e428

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/run-qemu

+7-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ QEMU_CPU="${QEMU_CPU:-max}"
2020
exit 1
2121
}
2222

23+
case "$ARCH" in
24+
amd64 | i?86 | x86_64)
25+
ARGS+=(-M q35)
26+
;;
27+
esac
28+
2329
# Provide rng device sourcing the hosts /dev/urandom and other standard parameters
24-
ARGS+=(-M q35 -smp 2 -m 1024 -nodefaults -vga none -display none -no-reboot -device virtio-rng-pci)
30+
ARGS+=(-smp 2 -m 1024 -nodefaults -vga none -display none -no-reboot -device virtio-rng-pci)
2531

2632
if ! [[ $* == *-daemonize* ]] && ! [[ $* == *-daemonize* ]]; then
2733
ARGS+=(-serial stdio)

0 commit comments

Comments
 (0)