twister: Fix wrong error counter in report
If "Cmake build failure" is detected test instance get status "error". Despite this in final report this error is counted as failure. It can be fix, by set proper results of each testcase in instance from None to "BLOCK" after found Cmake error. After this fix, error is counted properly in final report. Fixes #37140 Signed-off-by: Piotr Golyzniak <piotr.golyzniak@nordicsemi.no>
This commit is contained in:
parent
5c3ccf97ec
commit
35a052066c
1 changed files with 1 additions and 0 deletions
|
@ -2059,6 +2059,7 @@ class CMake():
|
||||||
else:
|
else:
|
||||||
self.instance.status = "error"
|
self.instance.status = "error"
|
||||||
self.instance.reason = "Cmake build failure"
|
self.instance.reason = "Cmake build failure"
|
||||||
|
self.instance.fill_results_by_status()
|
||||||
logger.error("Cmake build failure: %s for %s" % (self.source_dir, self.platform.name))
|
logger.error("Cmake build failure: %s for %s" % (self.source_dir, self.platform.name))
|
||||||
results = {"returncode": p.returncode}
|
results = {"returncode": p.returncode}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue