tests: Fix qemu options for UHCI test
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>
This commit is contained in:
parent
7090b77341
commit
b607d2a79e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue