From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhLZ2-0008Gk-CO for qemu-devel@nongnu.org; Tue, 28 May 2013 11:12:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhLYs-0001Az-71 for qemu-devel@nongnu.org; Tue, 28 May 2013 11:11:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhLYr-0001Ao-TO for qemu-devel@nongnu.org; Tue, 28 May 2013 11:11:42 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4SFBff5012908 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 28 May 2013 11:11:41 -0400 From: Stefan Hajnoczi Date: Tue, 28 May 2013 17:11:33 +0200 Message-Id: <1369753897-15140-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] qemu-iotests: reduce iotests.py code duplication List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi 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(-) -- 1.8.1.4