]> git.proxmox.com Git - mirror_qemu.git/commitdiff
iotests: Add "add_drive_raw" method
authorFam Zheng <famz@redhat.com>
Tue, 1 Dec 2015 09:36:29 +0000 (17:36 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 3 Dec 2015 03:08:07 +0000 (11:08 +0800)
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>
tests/qemu-iotests/iotests.py

index ff5905f37922c747a7c42c8cbe393fee7452a636..e02245ed07764ff2693500b06b54984faadc08a1 100644 (file)
@@ -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,