From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [PATCH kvm-unit-tests v2 09/12] x86/hyperv_synic: check for support before testing Date: Thu, 17 Dec 2015 18:53:40 +0100 Message-ID: <1450374823-7648-10-git-send-email-rkrcmar@redhat.com> References: <1450374823-7648-1-git-send-email-rkrcmar@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Paolo Bonzini , Andrew Jones To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:49395 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754018AbbLQRyW (ORCPT ); Thu, 17 Dec 2015 12:54:22 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 0F438693E1 for ; Thu, 17 Dec 2015 17:54:22 +0000 (UTC) In-Reply-To: <1450374823-7648-1-git-send-email-rkrcmar@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: It's not easy to distinguish successful unit-test from failed QEMU, so we check for presence of the needed feature before hand. Signed-off-by: Radim Kr=C4=8Dm=C3=A1=C5=99 --- v2: remove "> /dev/null" as check doesn't print the output anymore =20 x86/unittests.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/x86/unittests.cfg b/x86/unittests.cfg index 6b94ad93dcf0..25779993cc27 100644 --- a/x86/unittests.cfg +++ b/x86/unittests.cfg @@ -182,3 +182,4 @@ arch =3D x86_64 file =3D hyperv_synic.flat smp =3D 2 extra_params =3D -cpu kvm64,hv_synic -device hyperv-testdev +check =3D echo quit | $qemu -cpu kvm64,hv_synic -device hyperv-testdev= -monitor stdio --=20 2.6.4