summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorv-bhavanisu <144935558+v-bhavanisu@users.noreply.github.com>2024-07-12 10:45:58 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-15 16:50:00 +0000
commit8e6ba0dcae40bfd4c191b2cd47e08f38186513d1 (patch)
tree177a1e0ec51f2a5c4a0be35ad9b9be643781205d /BaseTools
parent5366def8d01d141163a727aeaef61318180deb98 (diff)
downloadedk2-8e6ba0dcae40bfd4c191b2cd47e08f38186513d1.tar.gz
edk2-8e6ba0dcae40bfd4c191b2cd47e08f38186513d1.tar.bz2
edk2-8e6ba0dcae40bfd4c191b2cd47e08f38186513d1.zip
BaseTools/HostBasedUnitTestRunner: Promote Unittest error to CI fail.
Some unit tests would fail to execute or execute and not produce any output logs. In these cases, the only output would be in the CI Log as `UnitTest Execution Error`. A UnitTest Execution Error should be considered the same as a unit tests test failing. Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py b/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py
index 2e5c462cd2..31d13b2ee7 100644
--- a/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py
+++ b/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py
@@ -110,6 +110,7 @@ class HostBasedUnitTestRunner(IUefiBuildPlugin):
if ret != 0:
logging.error("UnitTest Execution Error: " +
os.path.basename(test))
+ failure_count += 1
else:
logging.info("UnitTest Completed: " +
os.path.basename(test))