summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFam Zheng2015-12-01 10:36:29 +0100
committerStefan Hajnoczi2015-12-03 04:08:07 +0100
commit78b666f46b160441516c194a14432611262429d3 (patch)
treece2d5ba538dc4824fe8591110e4ff576b1eee165 /tests
parentblock: Don't wait serialising for non-COR read requests (diff)
downloadqemu-78b666f46b160441516c194a14432611262429d3.tar.gz
qemu-78b666f46b160441516c194a14432611262429d3.tar.xz
qemu-78b666f46b160441516c194a14432611262429d3.zip
iotests: Add "add_drive_raw" method
This offers full manual control over the "-drive" options. Signed-off-by: Fam Zheng <famz@redhat.com> Message-id: 1448962590-2842-3-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/qemu-iotests/iotests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index ff5905f379..e02245ed07 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -140,6 +140,11 @@ class VM(object):
self._args.append('-monitor')
self._args.append(args)
+ def add_drive_raw(self, opts):
+ self._args.append('-drive')
+ self._args.append(opts)
+ return self
+
def add_drive(self, path, opts='', interface='virtio'):
'''Add a virtio-blk drive to the VM'''
options = ['if=%s' % interface,