Skip to content

qemu-iotests: reduce iotests.py code duplication

Stefan Hajnoczi qemu-devel 1 version Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4qemu-iotests: make assert_no_active_block_jobs() commontests/qemu-iotests/030 tests/qemu-iotests/041 tests/qemu-iotests/iotests.py+57 -610 replies
2/4qemu-iotests: make cancel_and_wait() commontests/qemu-iotests/030 tests/qemu-iotests/041 tests/qemu-iotests/iotests.py+38 -532 replies
3/4qemu-iotests: make compare_images() commontests/qemu-iotests/041 tests/qemu-iotests/iotests.py+15 -310 replies
4/4qemu-iotests: make create_image() commontests/qemu-iotests/030 tests/qemu-iotests/041 tests/qemu-iotests/iotests.py+27 -400 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] qemu-iotests: reduce iotests.py code duplication

Tests 030 and 041 are written in Python and use the iotests.py module. Push common code down into iotests.py. My 'drive-backup' series takes advantage will take advantage of this - kwolf pointed out that earlier revisions were duplicating too much code.

I decided to split this into a separate patch series and send it before the next 'drive-backup' revision.

Stefan Hajnoczi (4):
qemu-iotests: make assert_no_active_block_jobs() common
qemu-iotests: make cancel_and_wait() common
qemu-iotests: make compare_images() common
qemu-iotests: make create_image() common

 tests/qemu-iotests/030        |  99 ++++++++---------------
 tests/qemu-iotests/041        | 181 +++++++++++++++---------------------------
 tests/qemu-iotests/iotests.py |  38 +++++++++
 3 files changed, 135 insertions(+), 183 deletions(-)
Signature · 1 line
1.8.1.4