From 78b666f46b160441516c194a14432611262429d3 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Tue, 1 Dec 2015 17:36:29 +0800 Subject: iotests: Add "add_drive_raw" method This offers full manual control over the "-drive" options. Signed-off-by: Fam Zheng Message-id: 1448962590-2842-3-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi --- tests/qemu-iotests/iotests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') 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, -- cgit v1.2.3-55-g7522