From patchwork Thu Nov 30 03:29:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shaoqin Huang X-Patchwork-Id: 13474044 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="DzNQbfWH" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9225010D0 for ; Wed, 29 Nov 2023 19:30:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701315010; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ww/G23VY72lofFkj/eKFHI/9f21iUPOtr0q5DiHkEsk=; b=DzNQbfWHJDwGuUfIQyHMJQ8cvrkWqyQf2+frhvOue2+jjvcPS99/O+EqzJQMD22tmalgg4 cFrO2ADk2aTrPaLCtlCOKikUZNvwOsDU8mSHTyvrTrPqw30tZbwoQofqlflLjr6idhdk8J FSKtVV+/uTD8CrqlvzA9bVBP/QQV6Ss= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-160-UC0XSGceN8aF_tBiCGLWKQ-1; Wed, 29 Nov 2023 22:30:06 -0500 X-MC-Unique: UC0XSGceN8aF_tBiCGLWKQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 928643C0008D; Thu, 30 Nov 2023 03:30:05 +0000 (UTC) Received: from virt-mtcollins-01.lab.eng.rdu2.redhat.com (virt-mtcollins-01.lab.eng.rdu2.redhat.com [10.8.1.196]) by smtp.corp.redhat.com (Postfix) with ESMTP id 88D94112130C; Thu, 30 Nov 2023 03:30:05 +0000 (UTC) From: Shaoqin Huang To: Andrew Jones , kvmarm@lists.linux.dev Cc: Shaoqin Huang , Nico Boehr , Thomas Huth , Ricardo Koller , Sean Christopherson , Colton Lewis , Nikos Nikoleris , Nina Schoetterl-Glausch , kvm@vger.kernel.org Subject: [kvm-unit-tests PATCH v2 1/3] runtime: Fix the missing last_line Date: Wed, 29 Nov 2023 22:29:38 -0500 Message-Id: <20231130032940.2729006-2-shahuang@redhat.com> In-Reply-To: <20231130032940.2729006-1-shahuang@redhat.com> References: <20231130032940.2729006-1-shahuang@redhat.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 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. Fixes: 2607d2d6 ("arm64: Add an efi/run script") Signed-off-by: Shaoqin Huang Reviewed-by: Andrew Jones --- scripts/runtime.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/runtime.bash b/scripts/runtime.bash index fc156f2f..c73fb024 100644 --- a/scripts/runtime.bash +++ b/scripts/runtime.bash @@ -149,7 +149,7 @@ function run() fi if [ ${skip} == true ]; then - print_result "SKIP" $testname "" "$last_line" + print_result "SKIP" $testname "" "$(tail -1 <<<"$log")" return 77 fi }