diff options
author | v-bhavanisu <144935558+v-bhavanisu@users.noreply.github.com> | 2024-07-12 10:45:58 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-15 16:50:00 +0000 |
commit | 8e6ba0dcae40bfd4c191b2cd47e08f38186513d1 (patch) | |
tree | 177a1e0ec51f2a5c4a0be35ad9b9be643781205d | |
parent | 5366def8d01d141163a727aeaef61318180deb98 (diff) | |
download | edk2-8e6ba0dcae40bfd4c191b2cd47e08f38186513d1.zip edk2-8e6ba0dcae40bfd4c191b2cd47e08f38186513d1.tar.gz edk2-8e6ba0dcae40bfd4c191b2cd47e08f38186513d1.tar.bz2 |
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>
-rw-r--r-- | BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py b/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py index 2e5c462..31d13b2 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))
|