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>
This commit is contained in:
v-bhavanisu 2024-07-12 10:45:58 -07:00 committed by mergify[bot]
parent 5366def8d0
commit 8e6ba0dcae
1 changed files with 1 additions and 0 deletions

View File

@ -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))