Skip to content

Commit a961222

Browse files
v-bhavanisuapop5
authored andcommitted
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 <[email protected]>
1 parent e1eb585 commit a961222

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def do_post_build(self, thebuilder):
113113
if ret != 0:
114114
logging.error("UnitTest Execution Error: " +
115115
os.path.basename(test))
116+
failure_count += 1
116117
else:
117118
logging.info("UnitTest Completed: " +
118119
os.path.basename(test))

0 commit comments

Comments
 (0)