From nobody Sun Feb 8 08:47:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+103442+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+103442+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1682200885; cv=none; d=zohomail.com; s=zohoarc; b=exJN0uxpadz6S5+DMjsTgSLeoUy21t8Q0jIXq2vZa7OWSpF4oeQyy/RZMXo7mK+GI3XcPwckw8UH24K4wKUt2nHl/q2jqxCTNo+IT/ymSsSCT8j1QK4Dztbs4RJ3qts9lcJVN7tQj9Qr7UaCUx92HBmEw09RnWG3KFEVvg2ra3I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1682200885; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=XAfpsK26bSn6n4ltl26d+CXgfUU9GwaRnJ1YXRFctg4=; b=hij/DtNUi+02XtdNHavG4WFREE1RWjjBNR++Sa6TYFQj0aAeZAOLOSYI1RbNSGroHwJURPIQxxO+Up8DFbTyfb8SzYcVgg1VkNg3mFvQpe/aDuivO20bUzH4BfwmrdfFYkjTjU8RxpYVH+Igd6tULrOctyk6CJSN5oRNOyedRRA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+103442+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1682200885065235.58006466976974; Sat, 22 Apr 2023 15:01:25 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 1G91YY1788612xenj3DctIju; Sat, 22 Apr 2023 15:01:24 -0700 X-Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.17118.1682200883347775852 for ; Sat, 22 Apr 2023 15:01:23 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10688"; a="374150988" X-IronPort-AV: E=Sophos;i="5.99,219,1677571200"; d="scan'208";a="374150988" X-Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2023 15:01:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10688"; a="836510302" X-IronPort-AV: E=Sophos;i="5.99,219,1677571200"; d="scan'208";a="836510302" X-Received: from gguo-desk.gar.corp.intel.com ([10.5.215.23]) by fmsmga001.fm.intel.com with ESMTP; 22 Apr 2023 15:01:21 -0700 From: "Guo, Gua" To: devel@edk2.groups.io Cc: gua.guo@intel.com, Michael D Kinney , Sean Brogan , Michael Kubacki Subject: [edk2-devel] [PATCH] BaseTools/Plugin: Report error if code coverage failure Date: Sun, 23 Apr 2023 06:00:43 +0800 Message-Id: <20230422220043.350-1-gua.guo@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,gua.guo@intel.com X-Gm-Message-State: UNakSGmnhDypVbYHuitFlwXgx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1682200884; bh=DYDMSm4zn3BUAEN4tcfJGmxPyq/Sm1vXLfVccOugVF4=; h=Cc:Date:From:Reply-To:Subject:To; b=SLAXrdy57/v5Q1xKuDpZIEUtCn6GqajCwqobQYDbP477YDW7xmNJ5ZEHb+ONwazOwJd MQ9lOYfd0nP6XeVEKqbg18v+d3KFlS3UHL8n95bxCSxhUrMUPAn0W2ffO8r4aVjBFEtr+ +F5Qezt8VV8iRmFx6vDTnHvznU4PCA+lBVo= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1682200885779100001 Content-Type: text/plain; charset="utf-8" From: Gua Guo If code coverage exist failure, CI/CD need to catch it Cc: Michael D Kinney Cc: Sean Brogan Cc: Michael Kubacki Signed-off-by: Gua Guo --- .../HostBasedUnitTestRunner/HostBasedUnitTestRunner.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunn= er.py b/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py index 0e013c5f1a..a3da253d93 100644 --- a/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py +++ b/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py @@ -117,9 +117,11 @@ class HostBasedUnitTestRunner(IUefiBuildPlugin): =20 if thebuilder.env.GetValue("CODE_COVERAGE") !=3D "FALSE": if thebuilder.env.GetValue("TOOL_CHAIN_TAG") =3D=3D "GCC5": - self.gen_code_coverage_gcc(thebuilder) + status =3D self.gen_code_coverage_gcc(thebuilder) + failure_count +=3D status elif thebuilder.env.GetValue("TOOL_CHAIN_TAG").startswith = ("VS"): - self.gen_code_coverage_msvc(thebuilder) + status =3D self.gen_code_coverage_msvc(thebuilder) + failure_count +=3D status else: logging.info("Skipping code coverage. Currently, suppo= rt GCC and MSVC compiler.") =20 --=20 2.39.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#103442): https://edk2.groups.io/g/devel/message/103442 Mute This Topic: https://groups.io/mt/98441497/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-