From nobody Thu Apr 25 20:50:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=eu.citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1589466018; cv=none; d=zohomail.com; s=zohoarc; b=B3jvEh8lxPKHYWU7HHHTLjyAc84s4BWu9FCSJ/Un8WHf7/Bc8qJg18f1mj1rtEZBCVrv3Se2Os0nwyJUmrk2JwFTFwwWvIx6aqVHDo/hf08hqskQZ5Ra+B3eW6rwasd4SrTGXxtm2eyuNBte7GSBDjkLZ7X7s+DrrKjRPJIDwd8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589466018; h=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; bh=hG+XfW1r6+NpTUYW3F8yafcvjS56hL0pPQ0Gf2LVGoc=; b=joWkw8a5wM5g8vk3HNbeqcwB/tEOsf9+A5H1YtuWOruf0HGJay5E0knSPHpqbRBKlOZwUfMYuan8TpNPXPxhsyeM9ZWMVeI6nBJz0/7KFAe2OldqeZGbGy+SSqYUM53l9ou28VyZ790eUA5s71+vO7vw9w7WGroPE5jOkNN1vFE= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1589466018620608.8175872290718; Thu, 14 May 2020 07:20:18 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jZEiP-0007QT-Cs; Thu, 14 May 2020 14:20:01 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jZEiO-0007QM-Jy for xen-devel@lists.xenproject.org; Thu, 14 May 2020 14:20:00 +0000 Received: from chiark.greenend.org.uk (unknown [2001:ba8:1e3::3]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id fbb2d6ce-95ed-11ea-9887-bc764e2007e4; Thu, 14 May 2020 14:19:55 +0000 (UTC) Received: from [172.18.45.5] (helo=zealot.relativity.greenend.org.uk) by chiark.greenend.org.uk (Debian Exim 4.84_2 #1) with esmtp (return-path ijackson@chiark.greenend.org.uk) id 1jZEiI-0004pf-Ma; Thu, 14 May 2020 15:19:54 +0100 X-Inumbo-ID: fbb2d6ce-95ed-11ea-9887-bc764e2007e4 From: Ian Jackson To: xen-devel@lists.xenproject.org Subject: [OSSTEST PATCH 1/4] Executive: Do not print "shared ... marked ready" when not shared Date: Thu, 14 May 2020 15:19:48 +0100 Message-Id: <20200514141951.29371-2-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200514141951.29371-1-ian.jackson@eu.citrix.com> References: <20200514141951.29371-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Content-Type: text/plain; charset="utf-8" Signed-off-by: Ian Jackson --- Osstest/Executive.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Osstest/Executive.pm b/Osstest/Executive.pm index e741f529..c3dc1261 100644 --- a/Osstest/Executive.pm +++ b/Osstest/Executive.pm @@ -1017,11 +1017,12 @@ sub executive_resource_shared_mark_ready ($$$) { my ($restype, $resname, $sharetype) =3D @_; # must run outside transaction =20 + my $oldshr; my $what=3D "resource $restype $resname"; $sharetype .=3D ' '.get_harness_rev(); =20 db_retry($dbh_tests, [qw(resources)], sub { - my $oldshr=3D resource_check_allocated_core($restype, $resname); + $oldshr=3D resource_check_allocated_core($restype, $resname); if (defined $oldshr) { die "$what shared $oldshr->{Type} not $sharetype" unless $oldshr->{Type} eq $sharetype; @@ -1053,7 +1054,11 @@ END }) { logm("post-mark-ready queue daemon prod failed: $@"); } - logm("$restype $resname shared $sharetype marked ready"); + if ($oldshr) { + logm("$restype $resname shared $sharetype marked ready"); + } else { + logm("$restype $resname (not shared, $sharetype) is ready"); + } } =20 # hostalloc_maxwait_starvation --=20 2.20.1