Received: from eggs.gnu.org ([2001:4830:134:3::10]:54609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvcPb-0001LC-GH for qemu-devel@nongnu.org; Fri, 31 Aug 2018 01:56:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvcJv-0007As-Ar for qemu-devel@nongnu.org; Fri, 31 Aug 2018 01:50:15 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34728 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fvcJv-0007AZ-5j for qemu-devel@nongnu.org; Fri, 31 Aug 2018 01:50:11 -0400 References: <20180830155810.17629-1-marcandre.lureau@redhat.com> <20180830155810.17629-2-marcandre.lureau@redhat.com> From: Thomas Huth Message-ID: <9b0e9fa6-039c-670b-351b-d0ab2d288c64@redhat.com> Date: Fri, 31 Aug 2018 07:50:05 +0200 MIME-Version: 1.0 In-Reply-To: <20180830155810.17629-2-marcandre.lureau@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v5 1/4] tests: add qmp_assert_error_class() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , qemu-devel@nongnu.org Cc: Paolo Bonzini , Laurent Vivier , Markus Armbruster , Michael Roth On 2018-08-30 17:58, Marc-Andr=C3=A9 Lureau wrote: > This helper will simplify a bunch of code checking for QMP errors and > can be shared by various tests. Note that test-qga does check for > error description as well, so don't replace the code there for now. >=20 > Signed-off-by: Marc-Andr=C3=A9 Lureau > --- > tests/libqtest.h | 9 ++++++ > tests/drive_del-test.c | 5 +-- > tests/libqtest.c | 11 +++++++ > tests/qmp-test.c | 73 +++++++++++++----------------------------- > tests/test-qga.c | 9 ++---- > 5 files changed, 46 insertions(+), 61 deletions(-) Reviewed-by: Thomas Huth