From patchwork Wed Aug 15 12:11:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Wolf X-Patchwork-Id: 177640 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BC6912C008F for ; Wed, 15 Aug 2012 22:11:26 +1000 (EST) Received: from localhost ([::1]:39051 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1cRY-0002pm-0E for incoming@patchwork.ozlabs.org; Wed, 15 Aug 2012 08:11:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1cRS-0002ph-8d for qemu-devel@nongnu.org; Wed, 15 Aug 2012 08:11:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1cRR-0004BU-Ad for qemu-devel@nongnu.org; Wed, 15 Aug 2012 08:11:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1cRR-00049Y-2h for qemu-devel@nongnu.org; Wed, 15 Aug 2012 08:11:17 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7FCBFb4005115 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 15 Aug 2012 08:11:15 -0400 Received: from dhcp-5-188.str.redhat.com (dhcp-5-175.str.redhat.com [10.32.5.175]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7FCBDZn031802; Wed, 15 Aug 2012 08:11:14 -0400 From: Kevin Wolf To: qemu-devel@nongnu.org Date: Wed, 15 Aug 2012 14:11:13 +0200 Message-Id: <1345032673-17507-1-git-send-email-kwolf@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: kwolf@redhat.com Subject: [Qemu-devel] [PATCH] qemu-iotests: Fix 030 after switch to GenericError X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Kevin Wolf Reviewed-by: Stefan Hajnoczi --- tests/qemu-iotests/030 | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030 index cc671dd..f71ab8d 100755 --- a/tests/qemu-iotests/030 +++ b/tests/qemu-iotests/030 @@ -225,8 +225,7 @@ class TestSetSpeed(ImageStreamingTestCase): self.assert_no_active_streams() result = self.vm.qmp('block-stream', device='drive0', speed=-1) - self.assert_qmp(result, 'error/class', 'InvalidParameter') - self.assert_qmp(result, 'error/data/name', 'speed') + self.assert_qmp(result, 'error/class', 'GenericError') self.assert_no_active_streams() @@ -234,8 +233,7 @@ class TestSetSpeed(ImageStreamingTestCase): self.assert_qmp(result, 'return', {}) result = self.vm.qmp('block-job-set-speed', device='drive0', speed=-1) - self.assert_qmp(result, 'error/class', 'InvalidParameter') - self.assert_qmp(result, 'error/data/name', 'speed') + self.assert_qmp(result, 'error/class', 'GenericError') self.cancel_and_wait()