From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E414E606A32D for ; Thu, 3 Dec 2026 01:59:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ty5ioDBT Received: from list by lists.xenproject.org with outflank-mailman.1511432.1703870 (Exim 4.92) (envelope-from ) id 1xYw6D-0000Mg-Fl; Thu, 03 Dec 2026 01:59:05 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1511432.1703870; Thu, 03 Dec 2026 01:59:05 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xYw6D-0000MZ-Cz; Thu, 03 Dec 2026 01:59:05 +0000 Received: by outflank-mailman (input) for mailman id 1511432; Thu, 03 Dec 2026 01:59:04 +0000 Received: from mx.expurgate.net ([194.145.224.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xYw6C-0000MT-O3 for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 01:59:04 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xYw6B-001pJu-ER for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 02:59:03 +0100 Received: from [10.42.69.11] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6b10cc80-bab6-0a2a0a5309dd-0a2a450ba9c2-40 for ; Thu, 03 Dec 2026 02:59:03 +0100 Received: from [172.234.252.31] (helo=sea.source.kernel.org) by tlsNG-42698a.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6b10cce5-b7e8-0a2a450b0019-aceafc1fd5fc-3 for ; Thu, 03 Dec 2026 02:59:03 +0100 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 027CE40BDD; Thu, 3 Dec 2026 01:59:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 964591F000C1; Thu, 3 Dec 2026 01:58:59 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Post: List-Help: List-Subscribe: , Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=k20260515 header.d=kernel.org header.i="@kernel.org" header.h="Date:From:To:cc:Subject:In-Reply-To:References" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796263140; bh=DYiBYs+GCL4p/NGX5N44nhsjEx26xqY2Q5rEDUVQKGg=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=Ty5ioDBT+dZzFhVPGZTdln335p3WRw9Ef8BN47S1i4O5+dJ07OxENuBp0UFpOmXxk qgsorCLUuqF20S0Z/+1BrHX00vYVR2Zn4P+3fc9LdhzDJ4IemJjEHk0x6jv1t65cLM D5WVjQNdKLXQ1NcCNQhht6iF1WdkLT/Rm8jXZ83PrTF6m9g8i8VCqPmT2CzvJLNvJ3 ESzgwmHN+JRbrfJg2nDHbNvtbF4F/XhtI3h+VOiqlqcn9sVPoHt1ZeJaGsciXynntL oGc9JMFaQa3V23c+1QycK+SmmDUy0zD74sjRokGhCd/PppsKjlM6nVDki++UhCSWWx z8JaKmNZ7wTKg== Date: Wed, 2 Dec 2026 17:58:58 -0800 (PST) From: Stefano Stabellini To: Denis Mukhin cc: xen-devel@lists.xenproject.org, andrew.cooper3@citrix.com, anthony.perard@vates.tech, jbeulich@suse.com, julien@xen.org, michal.orzel@amd.com, roger@xenproject.org, sstabellini@kernel.org, dmukhin@xen.org Subject: Re: [PATCH v1 05/13] CI: enable XTF status codes In-Reply-To: <20261105013701.719658-6-dmukhin@ford.com> Message-ID: References: <20261105013701.719658-1-dmukhin@ford.com> <20261105013701.719658-6-dmukhin@ford.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-purgate-ID: tlsNG-42698a/1796263143-19EC69EA-595669A3/0/0 X-purgate-type: clean X-purgate-size: 3462 X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Wed, 4 Nov 2026, dmukhin@ford.com wrote: > From: Denis Mukhin > > Enable XTF status code parsing detection similarly to python > 'xtf-runner' script (XTF repo) to allow fine-grained test report. > > Signed-off-by: Denis Mukhin > --- > automation/scripts/console.exp | 25 ++++++++++++++++++++----- > 1 file changed, 20 insertions(+), 5 deletions(-) > > diff --git a/automation/scripts/console.exp b/automation/scripts/console.exp > index e27886bbef23..55373f86e673 100755 > --- a/automation/scripts/console.exp > +++ b/automation/scripts/console.exp > @@ -14,8 +14,9 @@ > # - WAKEUP_CMD (optional): command to execute to wakeup the system 30s after > # seeing SUSPEND_MSG > # - LOG_MSG (optional): final console message to wait for > -# - PASSED: message to look for to consider test a success; if LOG_MSG is set, > +# - PASSED (optional): message to look for to consider test a success; if LOG_MSG is set, > # both LOG_MSG and PASSED must appear (in any order) for test to succeed > +# - TEST_XTF (optional): distinguish XTF error codes > > if {[info exists env(TEST_TIMEOUT_OVERRIDE)]} { > set timeout $env(TEST_TIMEOUT_OVERRIDE) > @@ -31,12 +32,24 @@ match_max 10000 > > eval spawn $env(TEST_CMD) > > +if {[info exists env(TEST_XTF)]} { > + expect_before { > + -re {Test result: SUCCESS} { exit 0 } > + -re {ERROR-EOF} { exit 2 } What prints "ERROR-EOF" on the console? The only producer is send_error, and that goes to stderr, so expect does not see it. > + -re {Test result: SKIP} { exit 3 } > + -re {Neither HAP nor Shadow available} { exit 3 } This is an error, it should not be a skip > + -re {Test result: ERROR} { exit 4 } > + -re {Test result: FAILURE} { exit 5 } > + -re { crashed } { exit 6 } XTF panic() ends with hypercall_shutdown(SHUTDOWN_crash) which prints: (XEN) Hardware Dom0 crashed: 'noreboot' set - not rebooting. The trick is that "crashed:" probably does not match " crashed " This should work: if {[info exists env(TEST_XTF)]} { expect_before { -re {Test result: SUCCESS} { exit 0 } -re {Test result: SKIP} { exit 3 } -re {Test result: ERROR} { exit 4 } -re {Test result: FAILURE} { exit 5 } -re {PANIC: } { exit 6 } -re {Panic on CPU} { exit 6 } -re {Dom[0-9]+ crashed:} { exit 6 } -re {\(vcpu#[0-9]+\) crashed} { exit 6 } } } > + } > +} > + > expect_after { > -re "(.*)\r" { > exp_continue -continue_timer > } > timeout {send_error "\nERROR-Timeout!\n"; exit 1} > - eof {send_error "\nERROR-EOF!\n"; exit 1} > + eof {send_error "\nERROR-EOF!\n"; exit 2} > } timeout keeps exit 1, which is also what expect returns when the script hits a Tcl error, and patch 7 maps 1 to TIMEOUT. Please give timeout its own code, so that a TIMEOUT in the report really is a timeout > if {[info exists env(UBOOT_CMD)]} { > @@ -71,9 +84,11 @@ if {[info exists env(LOG_MSG)]} { > } > } > > -expect { > - -re "$env(PASSED)" { > - exit 0 > +if {[info exists env(PASSED)]} { > + expect { > + -re "$env(PASSED)" { > + exit 0 > + } > } > } > > -- > 2.55.0 >