Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="qwB/BR8z" Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6400885 for ; Wed, 29 Nov 2023 01:11:40 -0800 (PST) Date: Wed, 29 Nov 2023 10:11:34 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1701249098; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JRJxZnwGjhIymnyBBk6Y0CVmxFGG/QUTFScRcfcAsVk=; b=qwB/BR8zmhZ0jMeS+cVo8foAK3xEFLSq4YUnhHe9e/mPCH2FOuPJVAHqc8d+syKwescfaO XD7HBc9RfGv8wjaC+RbtOXUOnzIcQjTDZm4ZJa5Cz6lgbRU/E5II0VOKInSCbDvN38nfQc 9cAGSDxCDEE5dnpF7SGvGL61941Hhv4= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Andrew Jones To: Shaoqin Huang Cc: kvmarm@lists.linux.dev, Thomas Huth , Nico Boehr , Ricardo Koller , Colton Lewis , Nina Schoetterl-Glausch , Sean Christopherson , Nikos Nikoleris , kvm@vger.kernel.org Subject: Re: [kvm-unit-tests PATCH v1 1/3] runtime: Fix the missing last_line Message-ID: <20231129-54301cf86283b3d5a5a249ea@orel> References: <20231129032123.2658343-1-shahuang@redhat.com> <20231129032123.2658343-2-shahuang@redhat.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231129032123.2658343-2-shahuang@redhat.com> X-Migadu-Flow: FLOW_OUT On Tue, Nov 28, 2023 at 10:21:21PM -0500, Shaoqin Huang wrote: > The last_line is deleted by the 2607d2d6 ("arm64: Add an efi/run script"). > This lead to when SKIP test, the reason is missing. Fix the problem by > adding last_line back. > > Signed-off-by: Shaoqin Huang Fixes: 2607d2d6 ("arm64: Add an efi/run script") > --- > scripts/runtime.bash | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/scripts/runtime.bash b/scripts/runtime.bash > index fc156f2f..d7054b80 100644 > --- a/scripts/runtime.bash > +++ b/scripts/runtime.bash > @@ -148,6 +148,8 @@ function run() > fi > fi > > + last_line=$(tail -1 <<<"$log") > + > if [ ${skip} == true ]; then > print_result "SKIP" $testname "" "$last_line" We can just change this one use of $last_line to $(tail -1 <<<"$log") > return 77 > -- > 2.40.1 > Thanks, drew