From 7455bf50d2bd570696318b6263d85d0cb4db20cd Mon Sep 17 00:00:00 2001 From: Ioannis Damigos Date: Mon, 7 Oct 2024 14:19:08 +0300 Subject: [PATCH] twister: Fix reported testcase execution time Testcase execution time doesn't match between twister.xml and twister.log. Testcase execution time is the sum of the previous testcases' execution time plus its own execution time in twister.xml. This patch fixes the issue above. Signed-off-by: Ioannis Damigos --- scripts/pylib/twister/twisterlib/reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pylib/twister/twisterlib/reports.py b/scripts/pylib/twister/twisterlib/reports.py index c22310abb5f..c442a1dfc6c 100644 --- a/scripts/pylib/twister/twisterlib/reports.py +++ b/scripts/pylib/twister/twisterlib/reports.py @@ -243,7 +243,7 @@ class Reporting: classname = f"{platform}:{name}" log = ts.get("log") fails, passes, errors, skips = self.xunit_testcase(eleTestsuite, - name, classname, ts_status, ts_status, reason, duration, runnable, + name, classname, ts_status, ts_status, reason, handler_time, runnable, (fails, passes, errors, skips), log, False) total = errors + passes + fails + skips