Received: from eggs.gnu.org ([2001:4830:134:3::10]:38238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViIqR-0000c9-Ut for qemu-devel@nongnu.org; Mon, 18 Nov 2013 02:02:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViIqM-0002Ql-KB for qemu-devel@nongnu.org; Mon, 18 Nov 2013 02:02:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:8805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViIqM-0002QT-CG for qemu-devel@nongnu.org; Mon, 18 Nov 2013 02:01:58 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rAI71tWo007907 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 18 Nov 2013 02:01:56 -0500 From: Fam Zheng Date: Mon, 18 Nov 2013 15:01:47 +0800 Message-Id: <1384758111-24143-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v5 0/4] Use blkdebug to make test deterministic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, stefanha@redhat.com, mreitz@redhat.com This adds "remove_break" command to block, which removes a break point defined with "break". It is used in iotests.py to pause and resume drive in block job cases to make the test deterministic. v5: Addressing Max's comments (thanks for reviewing) [02] Resume all the requests. [03] Fix event="" case. Change default value to None. Change resume to bool. [04] Change resume to bool v4: [01] Added. [03] Add common method pair "pause_drive" and "resume_drive". [04] Also fix 040, 055. Fam Zheng (4): qemu-iotests: Drop local version of cancel_and_wait from 040 blkdebug: add "remove_break" command qemu-iotest: Add pause_drive and resume_drive methods qemu-iotests: Make test case 030, 040 and 055 deterministic block.c | 13 +++++++++++++ block/blkdebug.c | 27 +++++++++++++++++++++++++++ include/block/block.h | 1 + include/block/block_int.h | 2 ++ qemu-io-cmds.c | 22 ++++++++++++++++++++++ tests/qemu-iotests/030 | 16 +++++++++++----- tests/qemu-iotests/040 | 19 +++---------------- tests/qemu-iotests/055 | 15 +++++++++++---- tests/qemu-iotests/iotests.py | 18 +++++++++++++++++- 9 files changed, 107 insertions(+), 26 deletions(-) -- 1.8.4.2