From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [kvm-unit-tests PATCH v4 12/13] scripts/arch-run: change QEMU failure detection Date: Wed, 11 May 2016 18:30:42 +0200 Message-ID: <1462984243-5783-3-git-send-email-rkrcmar@redhat.com> References: <1462983171-4208-1-git-send-email-rkrcmar@redhat.com> <1462984243-5783-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]:43890 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751936AbcEKQax (ORCPT ); Wed, 11 May 2016 12:30:53 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 59B3AC0C4297 for ; Wed, 11 May 2016 16:30:53 +0000 (UTC) In-Reply-To: <1462984243-5783-1-git-send-email-rkrcmar@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: We FAIL the test whenever there is an output on stderr. QEMU or its libraries can warn and the test could still work, so ignore any line that has a warning keyword. Signed-off-by: Radim Kr=C4=8Dm=C3=A1=C5=99 --- v4: new scripts/arch-run.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/arch-run.bash b/scripts/arch-run.bash index 8ef4ff5634a0..8e75c6ed6e17 100644 --- a/scripts/arch-run.bash +++ b/scripts/arch-run.bash @@ -55,7 +55,7 @@ run_qemu () # Even when ret=3D=3D1 (unittest success) if we also got stderr # logs, then we assume a QEMU failure. Otherwise we translate # status of 1 to 0 (SUCCESS) - if [ -z "$errors" ]; then + if [ -z "$(echo "$errors" | grep -vi warning)" ]; then ret=3D0 fi fi --=20 2.8.2