提交 78b666f4 编写于 作者: F Fam Zheng 提交者: Stefan Hajnoczi

iotests: Add "add_drive_raw" method

This offers full manual control over the "-drive" options.
Signed-off-by: NFam Zheng <famz@redhat.com>
Message-id: 1448962590-2842-3-git-send-email-famz@redhat.com
Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
上级 61408b25
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册