]> Git Repo - qemu.git/blobdiff - tests/qemu-iotests/iotests.py
Add tests for sync modes 'TOP' and 'NONE'
[qemu.git] / tests / qemu-iotests / iotests.py
index b028a890e659aeb13a871536550bb494fea93069..33ad0ecb920d4a8739cf410023dbf89af2e3fe0c 100644 (file)
@@ -95,6 +95,11 @@ class VM(object):
         self._num_drives += 1
         return self
 
+    def hmp_qemu_io(self, drive, cmd):
+        '''Write to a given drive using an HMP command'''
+        return self.qmp('human-monitor-command',
+                        command_line='qemu-io %s "%s"' % (drive, cmd))
+
     def add_fd(self, fd, fdset, opaque, opts=''):
         '''Pass a file descriptor to the VM'''
         options = ['fd=%d' % fd,
This page took 0.023257 seconds and 4 git commands to generate.