]> Git Repo - qemu.git/commitdiff
Add testcase for scsi-hd devices without drive property
authorChristian Borntraeger <[email protected]>
Tue, 3 Mar 2015 14:59:26 +0000 (15:59 +0100)
committerKevin Wolf <[email protected]>
Tue, 10 Mar 2015 13:02:24 +0000 (14:02 +0100)
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 <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
tests/qemu-iotests/051
tests/qemu-iotests/051.out

index 2274d187a0ee07eeac1a209403f6710ed52eeb8c..0360f37e5a9ec37f5a254b67a3bd389725e4723d 100755 (executable)
@@ -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
index 88add8f05673af59d8a243f24e02aeeeec0d03f1..09895e613621099ea2c29d1ab67c264b95205a3c 100644 (file)
@@ -47,6 +47,14 @@ Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2
 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format'
 
 
+=== Device without drive ===
+
+Testing: -device virtio-scsi-pci -device scsi-hd
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) QEMU_PROG: -device scsi-hd: drive property not set
+QEMU_PROG: -device scsi-hd: Device 'scsi-hd' could not be initialized
+
+
 === Overriding backing file ===
 
 Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig -nodefaults
This page took 0.033031 seconds and 4 git commands to generate.