]> git.proxmox.com Git - grub2.git/commitdiff
tests: Fix qemu options for UHCI test
authorColin Watson <cjwatson@ubuntu.com>
Mon, 30 Jul 2018 11:37:42 +0000 (12:37 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 13 Sep 2018 08:50:24 +0000 (10:50 +0200)
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>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/uhci_test.in

index 4af72fd8fea5ab2b3e2059d2a89f0b0dfaa74c9a..f0eec50328840881f6b1b50bf376584a083ca770 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