diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-23 16:39:23 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2012-10-24 10:26:22 +0200 |
| commit | 9dfa9f593045d70572ebfd94f59cd33ec99e847c (patch) | |
| tree | 16d82c7fcc516829670bc502c1fae79a1bebd2b3 /tests/qemu-iotests/iotests.py | |
| parent | 9eb80eadd498fae2ad9eecbb89646b0cc4929cac (diff) | |
| download | focaccia-qemu-9dfa9f593045d70572ebfd94f59cd33ec99e847c.tar.gz focaccia-qemu-9dfa9f593045d70572ebfd94f59cd33ec99e847c.zip | |
qemu-iotests: add testcases for mirroring on-source-error/on-target-error
The new options are tested with blkdebug on both the source and the target. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/iotests.py')
| -rw-r--r-- | tests/qemu-iotests/iotests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 3c60b2d163..735c6745d7 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -106,6 +106,10 @@ class VM(object): return self._qmp.cmd(cmd, args=qmp_args) + def get_qmp_event(self, wait=False): + '''Poll for one queued QMP events and return it''' + return self._qmp.pull_event(wait=wait) + def get_qmp_events(self, wait=False): '''Poll for queued QMP events and return a list of dicts''' events = self._qmp.get_events(wait=wait) |