From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 25AF9C27C53 for ; Wed, 12 Jun 2024 07:27:10 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=OpBrqRxC; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4VzcYm0gqsz30WJ for ; Wed, 12 Jun 2024 17:27:08 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=OpBrqRxC; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.dev (client-ip=2001:41d0:203:375::af; helo=out-175.mta1.migadu.com; envelope-from=andrew.jones@linux.dev; receiver=lists.ozlabs.org) Received: from out-175.mta1.migadu.com (out-175.mta1.migadu.com [IPv6:2001:41d0:203:375::af]) (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 lists.ozlabs.org (Postfix) with ESMTPS id 4VzcXz1ylHz30Wg for ; Wed, 12 Jun 2024 17:26:26 +1000 (AEST) X-Envelope-To: npiggin@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1718177166; 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=5YuQn5IrAUYtmbzCV9i0/B6NGjQuNoPZLzpKUN9oVV8=; b=OpBrqRxCjpyZUNsoUlgKjxwgbMlJBuNrf3NFF8PCul+SMsRawTFcZk+2I0vXG57v0zICk8 tuy6MZMkTzEG8jLSsIe+flYk5u3XQ1keborCHXC7u1U+Gareizr2iGpagZkJR9ZnslyMBb w6/vNH/pGyBLSbNSRc9OKpIzRpVUb7A= X-Envelope-To: thuth@redhat.com X-Envelope-To: lvivier@redhat.com X-Envelope-To: linuxppc-dev@lists.ozlabs.org X-Envelope-To: kvm@vger.kernel.org Date: Wed, 12 Jun 2024 09:26:04 +0200 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Andrew Jones To: Nicholas Piggin Subject: Re: [kvm-unit-tests PATCH v10 12/15] scripts/arch-run.bash: Fix run_panic() success exit status Message-ID: <20240612-eef98a649a0764215ea0d91f@orel> References: <20240612052322.218726-1-npiggin@gmail.com> <20240612052322.218726-13-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240612052322.218726-13-npiggin@gmail.com> X-Migadu-Flow: FLOW_OUT X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Thomas Huth , linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Wed, Jun 12, 2024 at 03:23:17PM GMT, Nicholas Piggin wrote: > run_qemu_status() looks for "EXIT: STATUS=%d" if the harness command > returned 1, to determine the final status of the test. In the case of > panic tests, QEMU should terminate before successful exit status is > known, so the run_panic() command must produce the "EXIT: STATUS" line. > > With this change, running a panic test returns 0 on success (panic), > and the run_test.sh unit test correctly displays it as PASS rather than > FAIL. > > Signed-off-by: Nicholas Piggin > --- > scripts/arch-run.bash | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/arch-run.bash b/scripts/arch-run.bash > index 8643bab3b..9bf2f0bbd 100644 > --- a/scripts/arch-run.bash > +++ b/scripts/arch-run.bash > @@ -378,6 +378,7 @@ run_panic () > else > # some QEMU versions report multiple panic events > echo "PASS: guest panicked" > + echo "EXIT: STATUS=1" > ret=1 > fi > > -- > 2.45.1 > Do we also need an 'echo "EXIT: STATUS=3"' in the if-arm of this if-else? Thanks, drew