Skip to content

Commit

Permalink
BaseTools/HostBasedUnitTestRunner: Promote Unittest error to CI fail.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
v-bhavanisu authored and apop5 committed Jul 16, 2024
1 parent e1eb585 commit a961222
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def do_post_build(self, thebuilder):
if ret != 0:
logging.error("UnitTest Execution Error: " +
os.path.basename(test))
failure_count += 1
else:
logging.info("UnitTest Completed: " +
os.path.basename(test))
Expand Down

0 comments on commit a961222

Please sign in to comment.