From: Paolo Bonzini Subject: Re: [PATCH] scripts/runtime: Adjust the premature_failure check Date: Tue, 31 May 2016 18:20:45 +0200 Message-ID: <1bedcc7e-5e5c-2d8e-9049-775b23ebc6b9@redhat.com> References: <1464692057-19348-1-git-send-email-ldoktor@redhat.com> <1464692057-19348-2-git-send-email-ldoktor@redhat.com> <20160531153747.GB30930@potion> <20160531155617.GA11111@potion> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org, drjones@redhat.com, lvivier@redhat.com To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , =?UTF-8?B?THVrw6HFoSBEb2t0b3I=?= Return-path: Received: from mx1.redhat.com ([209.132.183.28]:34011 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750880AbcEaQUu (ORCPT ); Tue, 31 May 2016 12:20:50 -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 CFA2C6265B for ; Tue, 31 May 2016 16:20:49 +0000 (UTC) In-Reply-To: <20160531155617.GA11111@potion> Sender: kvm-owner@vger.kernel.org List-ID: On 31/05/2016 17:56, Radim Kr=C4=8Dm=C3=A1=C5=99 wrote: > 2016-05-31 17:37+0200, Radim Kr=C4=8Dm=C3=A1=C5=99: >> 2016-05-31 12:54+0200, Luk=C3=A1=C5=A1 Doktor: >>> 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. >>> --- >>> diff --git a/scripts/runtime.bash b/scripts/runtime.bash >>> - echo "$last_line" | grep -qi "could not load kernel" && >>> + echo "$last_line" | grep "_NO_FILE_4Uhere_" | grep -qi "no suc= h file" && >> >> PPC uses "Could not open '_NO_FILE_4Uhere_': No such file [...]". >> The problem is that "No such file [...]" might be localized, so what >> about >> grep -qi "could not \(load kernel\|open\) '_NO_FILE_4Uhere_'" >> ? >=20 > My tested local repo has a different line there: > (no idea how the posted version came around ...) >=20 > echo "$last_line" | grep -qi "_NO_FILE_4Uhere_" && "-i" is not needed here, though. Paolo > so we might be fine with it too, but I like the context check.