]> git.proxmox.com Git - qemu.git/blobdiff - tests/qemu-iotests/051
block: Don't parse protocol from file.filename
[qemu.git] / tests / qemu-iotests / 051
index 8039e23ab3b53c022d57b60f46c3d7b386727fd2..1cf8bf79b6cc0580481a1a1ff43b15676d1b8886 100755 (executable)
@@ -149,6 +149,18 @@ echo
 run_qemu -drive file=$TEST_IMG,file.driver=file
 run_qemu -drive file=$TEST_IMG,file.driver=qcow2
 
+echo
+echo === Parsing protocol from file name ===
+echo
+
+# Protocol strings are supposed to be parsed from traditional option strings,
+# but not when using driver-specific options. We can distinguish them by the
+# error message for non-existing files.
+
+run_qemu -hda foo:bar
+run_qemu -drive file=foo:bar
+run_qemu -drive file.filename=foo:bar
+
 # success, all done
 echo "*** done"
 rm -f $seq.full