summaryrefslogtreecommitdiffstats
path: root/tests/qemu-iotests/051
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2013-07-10 15:47:39 +0200
committerKevin Wolf <kwolf@redhat.com>2013-07-15 09:49:00 +0200
commit98289620e0460fa595581020ab20127da4a2fc44 (patch)
treec78493ac885f6c8e079ffd2a517de13807c5a7ef /tests/qemu-iotests/051
parentde90930a0c45760e7523138fac57ff07312bf51d (diff)
downloadhqemu-98289620e0460fa595581020ab20127da4a2fc44.zip
hqemu-98289620e0460fa595581020ab20127da4a2fc44.tar.gz
block: Don't parse protocol from file.filename
One of the major reasons for doing something new for -blockdev and blockdev-add was that the old block layer code parses filenames instead of just taking them literally. So we should really leave it untouched when it's passing using the new interfaces (like -drive file.filename=...). This allows opening relative file names that contain a colon. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/051')
-rwxr-xr-xtests/qemu-iotests/05112
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/qemu-iotests/051 b/tests/qemu-iotests/051
index 8039e23..1cf8bf7 100755
--- a/tests/qemu-iotests/051
+++ b/tests/qemu-iotests/051
@@ -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
OpenPOWER on IntegriCloud