From patchwork Wed Nov 29 03:21:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shaoqin Huang X-Patchwork-Id: 13472165 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="U6Mr8+bA" 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 E97301AD for ; Tue, 28 Nov 2023 19:21:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701228096; 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=avS4J2IuJovZqhrdKeCYjn42GytW2g/uQGH2bJQRq0I=; b=U6Mr8+bAZMNvGoFSuZ+ELBhRT814DiRhewMQVMYkQQiDJUURlox7QRIbuVUs5qSjiBRNUF R/geaMNa70aL3hFz+CEQPs7d/bCyBd/kGEx8vP96C5noneiy48d4HBwzzAKdbcu68aE/8i PSgiZ+60mQgZqieSKyMO5s0l05b4p7w= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-574-DZHphnXxMKKrXV8KmFO-Cw-1; Tue, 28 Nov 2023 22:21:31 -0500 X-MC-Unique: DZHphnXxMKKrXV8KmFO-Cw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 BFDA8101A529; Wed, 29 Nov 2023 03:21:30 +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 B5BF6492BFE; Wed, 29 Nov 2023 03:21:30 +0000 (UTC) From: Shaoqin Huang To: Andrew Jones , kvmarm@lists.linux.dev Cc: Shaoqin Huang , Thomas Huth , Nico Boehr , Ricardo Koller , Colton Lewis , Nina Schoetterl-Glausch , Sean Christopherson , Nikos Nikoleris , kvm@vger.kernel.org Subject: [kvm-unit-tests PATCH v1 1/3] runtime: Fix the missing last_line Date: Tue, 28 Nov 2023 22:21:21 -0500 Message-Id: <20231129032123.2658343-2-shahuang@redhat.com> In-Reply-To: <20231129032123.2658343-1-shahuang@redhat.com> References: <20231129032123.2658343-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.10 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 --- 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" return 77