From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT8GP-0007SL-6u for qemu-devel@nongnu.org; Tue, 09 Feb 2016 08:23:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aT8GK-00055E-If for qemu-devel@nongnu.org; Tue, 09 Feb 2016 08:23:29 -0500 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:43824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT8GK-00054U-7u for qemu-devel@nongnu.org; Tue, 09 Feb 2016 08:23:24 -0500 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 9 Feb 2016 13:23:22 -0000 From: Sascha Silbe Date: Tue, 9 Feb 2016 14:23:09 +0100 Message-Id: <1455024190-105823-2-git-send-email-silbe@linux.vnet.ibm.com> In-Reply-To: <1455024190-105823-1-git-send-email-silbe@linux.vnet.ibm.com> References: <1455024190-105823-1-git-send-email-silbe@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 1/2] qemu-iotests: add _filter_qmp_events() for filtering out QMP events List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Kevin Wolf , qemu-block@nongnu.org Cc: Tu Bo The order of some QMP events may depend on the architecture being tested. Add support for filtering out QMP events so we can use a single reference output for all architecture when the test doesn't care about the events. Signed-off-by: Sascha Silbe --- tests/qemu-iotests/common.filter | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter index 84b7434..b908aa2 100644 --- a/tests/qemu-iotests/common.filter +++ b/tests/qemu-iotests/common.filter @@ -178,6 +178,12 @@ _filter_qmp() -e ' QMP_VERSION' } +# remove QMP events from output +_filter_qmp_events() +{ + sed -e '/^{\(.*, \)"event": ".*}$/ d' +} + # replace driver-specific options in the "Formatting..." line _filter_img_create() { -- 2.1.4