summaryrefslogtreecommitdiffstats
path: root/tests/qemu-iotests/087
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2014-04-17 13:40:30 +0200
committerKevin Wolf <kwolf@redhat.com>2014-04-22 12:12:30 +0200
commit90d9d30152674677aa7b810cf7debe01dc2780f6 (patch)
tree030ffad9dd6c59e89d0561bcc8796d1a64e1ead5 /tests/qemu-iotests/087
parentf2d953ec31eeeb3029ca915a55938c538a14efa8 (diff)
downloadhqemu-90d9d30152674677aa7b810cf7debe01dc2780f6.zip
hqemu-90d9d30152674677aa7b810cf7debe01dc2780f6.tar.gz
qemu-iotests: Check common namespace for id and node-name
A name that is taken by an ID can't be taken by a node-name at the same time. Check that conflicts are correctly detected. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/087')
-rwxr-xr-xtests/qemu-iotests/08752
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/qemu-iotests/087 b/tests/qemu-iotests/087
index 37d82fc..82c56b1 100755
--- a/tests/qemu-iotests/087
+++ b/tests/qemu-iotests/087
@@ -83,6 +83,7 @@ run_qemu <<EOF
"options": {
"driver": "$IMGFMT",
"id": "disk",
+ "node-name": "test-node",
"file": {
"driver": "file",
"filename": "$TEST_IMG"
@@ -102,6 +103,57 @@ run_qemu <<EOF
}
}
}
+{ "execute": "blockdev-add",
+ "arguments": {
+ "options": {
+ "driver": "$IMGFMT",
+ "id": "test-node",
+ "file": {
+ "driver": "file",
+ "filename": "$TEST_IMG"
+ }
+ }
+ }
+ }
+{ "execute": "blockdev-add",
+ "arguments": {
+ "options": {
+ "driver": "$IMGFMT",
+ "id": "disk2",
+ "node-name": "disk",
+ "file": {
+ "driver": "file",
+ "filename": "$TEST_IMG"
+ }
+ }
+ }
+ }
+{ "execute": "blockdev-add",
+ "arguments": {
+ "options": {
+ "driver": "$IMGFMT",
+ "id": "disk2",
+ "node-name": "test-node",
+ "file": {
+ "driver": "file",
+ "filename": "$TEST_IMG"
+ }
+ }
+ }
+ }
+{ "execute": "blockdev-add",
+ "arguments": {
+ "options": {
+ "driver": "$IMGFMT",
+ "id": "disk3",
+ "node-name": "disk3",
+ "file": {
+ "driver": "file",
+ "filename": "$TEST_IMG"
+ }
+ }
+ }
+ }
{ "execute": "quit" }
EOF
OpenPOWER on IntegriCloud