qemu-iotests: make assert_no_active_block_jobs() common
commitecc1c88efddb376687084c3387c38b3a458c5892
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 28 May 2013 15:11:34 +0000 (28 17:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 4 Jun 2013 10:11:58 +0000 (4 12:11 +0200)
tree875aee8594e5035ca04ab2b31580c360d80609f7
parentb64ec4e4ade581d662753cdeb0d7e0e27aafbf81
qemu-iotests: make assert_no_active_block_jobs() common

Tests 030 and 041 both use query-block-jobs to check whether any block
jobs are active.  Make this code common so that 'drive-backup' and other
new feature tests will be able to reuse it.

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