OSDN Git Service

qemu-iotests: extract wait_until_completed() into iotests.py
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 24 Jun 2013 15:13:19 +0000 (17:13 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Jun 2013 07:20:27 +0000 (09:20 +0200)
commit0dbe8a1b042b5eb22c6587dcc9884ebe8cedcbb6
tree50ae54fb4b8d9bc9a51a53e44e4d8ad96755a4d6
parent78b18b78aa89c28aecbd007ae1967c978d39bfd6
qemu-iotests: extract wait_until_completed() into iotests.py

The 'drive-mirror' tests often issue 'block-job-complete' and wait for
the QMP completion event.  Other types of block jobs also want to wait
for completion but they may not need to issue 'block-job-complete'.

Extract wait_until_completed() from 041 and put it into iotests.py.
Return the QMP event object so the caller can make additional
assertions, if necessary.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/041
tests/qemu-iotests/iotests.py