From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Subject: [PATCH] scripts/runtime: Adjust the premature_failure check Date: Tue, 31 May 2016 12:54:17 +0200 Message-ID: <1464692057-19348-2-git-send-email-ldoktor@redhat.com> References: <1464692057-19348-1-git-send-email-ldoktor@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org, drjones@redhat.com, pbonzini@redhat.com, lvivier@redhat.com, ldoktor@redhat.com Return-path: Received: from mx1.redhat.com ([209.132.183.28]:56120 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752677AbcEaKy2 (ORCPT ); Tue, 31 May 2016 06:54:28 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (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 39D9C64094 for ; Tue, 31 May 2016 10:54:28 +0000 (UTC) In-Reply-To: <1464692057-19348-1-git-send-email-ldoktor@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: The premature_failure check fails on qemu-system-ppc64 as it uses different message. This patch modifies the condition so it works (hopefully) for all archs. Signed-off-by: Luk=C3=A1=C5=A1 Doktor --- scripts/runtime.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/runtime.bash b/scripts/runtime.bash index 6c4c800..886814b 100644 --- a/scripts/runtime.bash +++ b/scripts/runtime.bash @@ -17,7 +17,7 @@ premature_failure() local log=3D"$(eval $(get_cmdline _NO_FILE_4Uhere_) 2>&1)" local last_line=3D$(tail -1 <<< "$log") =20 - echo "$last_line" | grep -qi "could not load kernel" && + echo "$last_line" | grep "_NO_FILE_4Uhere_" | grep -qi "no such fi= le" && return 1 =20 RUNTIME_log_stderr <<< "$log" --=20 2.5.5