diff options
author | Fam Zheng <famz@redhat.com> | 2014-09-18 15:36:43 -0500 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-09-26 13:14:11 -0400 |
commit | fe509ee2373078435fb8c4f68eebd2740c4e388f (patch) | |
tree | 99ef3b676477520284abd81e51c70653f47aeebb /tests/qemu-iotests/087 | |
parent | cb55111b4e425fa3279302fa7306b9a3d5164ff4 (diff) | |
download | qemu-fe509ee2373078435fb8c4f68eebd2740c4e388f.zip qemu-fe509ee2373078435fb8c4f68eebd2740c4e388f.tar.gz qemu-fe509ee2373078435fb8c4f68eebd2740c4e388f.tar.bz2 |
qemu-iotests: Test missing "driver" key for blockdev-add
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/087')
-rwxr-xr-x | tests/qemu-iotests/087 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/qemu-iotests/087 b/tests/qemu-iotests/087 index 82c56b1..d7454d1 100755 --- a/tests/qemu-iotests/087 +++ b/tests/qemu-iotests/087 @@ -218,6 +218,23 @@ run_qemu <<EOF { "execute": "quit" } EOF +echo +echo === Missing driver === +echo + +_make_test_img -o encryption=on $size +run_qemu -S <<EOF +{ "execute": "qmp_capabilities" } +{ "execute": "blockdev-add", + "arguments": { + "options": { + "id": "disk" + } + } + } +{ "execute": "quit" } +EOF + # success, all done echo "*** done" rm -f $seq.full |