From nobody Mon Feb 9 18:19:58 2026 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1555605202; cv=none; d=zoho.com; s=zohoarc; b=e1lV36s7QEQsGVo3wgOBi0p5hfpj2IJzkPGdlRFyjWtSCAF82hmKKtOWtXL4wVvcldrl1kTXGeCxFAAjvaYyFLCWs2/5j3zpiwMs/jtESqYZfwABd/hPblaNKOGdBkBIGpEHl8u4J1MYe6+8+glQYoej0IRbmyXIBTA76+VEvNg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555605202; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=mc1SFcTrUdLLvwEamkNYirzUDNm2kCsHlYUuzLzIp4U=; b=YMtzRk0Q8WbYRxofObjcmdxBFBP6bLNmCVqRLGfSlgjor0rgQkW9a2FEZbbU0bUQKz85ZsXMN9dRpW9XeT3tMCGbdBxXMgpdy9aiLjAf0kCb4tAGe3HPgIpTyXi/tSFDFZ5JwZjEHl2KeRhdUgvMpz6AoleBeCf5ef/3dPWGE3Y= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1555605202690609.4344655363788; Thu, 18 Apr 2019 09:33:22 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hH9xK-00021e-Gt; Thu, 18 Apr 2019 16:32:10 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hH9xJ-0001zr-Gk for xen-devel@lists.xenproject.org; Thu, 18 Apr 2019 16:32:09 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 828dba8c-61f7-11e9-92d7-bc764e045a96; Thu, 18 Apr 2019 16:32:08 +0000 (UTC) X-Inumbo-ID: 828dba8c-61f7-11e9-92d7-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,366,1549929600"; d="scan'208";a="83913773" From: Ian Jackson To: Date: Thu, 18 Apr 2019 17:31:50 +0100 Message-ID: <20190418163158.11408-14-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190418163158.11408-1-ian.jackson@eu.citrix.com> References: <20190418163158.11408-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 13/21] TestSupport: Make "broken" set the step state too X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Signed-off-by: Ian Jackson --- Osstest/TestSupport.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index e218ff35..8e20244d 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -235,6 +235,17 @@ sub broken ($;$) { # must be run outside transaction my $affected; $newst=3D 'broken' unless defined $newst; + eval { + # This is not always effective, but when we really care is + # situations where $newst is not `broken' (eg `starved') and + # we are running in Executive mode under sg-run-job, and then + # this works. If we are running under sg-run-job, sg-run-job + # will set the step status if we don't manage it. + my $testid =3D $ENV{'OSSTEST_TESTID'} + || die "OSSTEST_TESTID not set"; + $mjobdb->step_finish($testid, $newst); + }; + warn "failed to set step status $newst: $@" if $@; db_retry($flight,'running', $dbh_tests,[qw(flights)], sub { $affected=3D $dbh_tests->do(<