]> git.proxmox.com Git - grub2.git/commitdiff
tests: Fix qemu options for UHCI test
authorColin Watson <cjwatson@ubuntu.com>
Mon, 30 Jul 2018 11:29:44 +0000 (12:29 +0100)
committerColin Watson <cjwatson@debian.org>
Mon, 30 Jul 2018 11:48:45 +0000 (12:48 +0100)
qemu 2.12 removed the -usbdevice option.  Use a more modern spelling
instead, in line with other USB-related tests.

Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Forwarded: https://lists.gnu.org/archive/html/grub-devel/2018-07/msg00114.html
Last-Update: 2018-07-30

Patch-Name: tests-fix-uhci-qemu-options.patch

tests/uhci_test.in

index 89e2c18051ac00f414edd0e80bdcfd911c8f9842..cd38aee9040ab07319432f3cd3d39790955660b4 100644 (file)
@@ -41,7 +41,7 @@ echo "hello" > "$outfile"
 
 tar cf "$imgfile" "$outfile"
 
-if [ "$(echo "nativedisk; source '(usb0)/$outfile';" | "${grubshell}" --qemu-opts="-usb -usbdevice disk:$imgfile" | tail -n 1)" != "Hello World" ]; then
+if [ "$(echo "nativedisk; source '(usb0)/$outfile';" | "${grubshell}" --qemu-opts="-device ich9-usb-uhci1 -drive id=my_usb_disk,file=$imgfile,if=none -device usb-storage,drive=my_usb_disk" | tail -n 1)" != "Hello World" ]; then
    rm "$imgfile"
    rm "$outfile"
    exit 1