Add testcase for scsi-hd devices without drive property

Lets add a test for scsi devices without a drive. This was broken
by a recent block patch, thus indicating that we need a testcase.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Christian Borntraeger 2015-03-03 15:59:26 +01:00 committed by Kevin Wolf
parent df1d4c341a
commit 354483e507
2 changed files with 14 additions and 0 deletions

View file

@ -98,6 +98,12 @@ run_qemu -drive file="$TEST_IMG",driver=foo
run_qemu -drive file="$TEST_IMG",driver=raw,format=qcow2
run_qemu -drive file="$TEST_IMG",driver=qcow2,format=qcow2
echo
echo === Device without drive ===
echo
run_qemu -device virtio-scsi-pci -device scsi-hd
echo
echo === Overriding backing file ===
echo