tests: ztest: provide test execution times per ztest testcase
Add execution time for testing result of each ztest testcase as:
START - test_sem_multi_take_timeout_diff_sem
PASS - test_sem_multi_take_timeout_diff_sem in 2.54 seconds
Fix #32137.
Signed-off-by: Enjia Mai <enjiax.mai@intel.com>
diff --git a/scripts/pylib/twister/harness.py b/scripts/pylib/twister/harness.py
index 2c30f9a..25bea11 100644
--- a/scripts/pylib/twister/harness.py
+++ b/scripts/pylib/twister/harness.py
@@ -2,7 +2,7 @@
import re
from collections import OrderedDict
-result_re = re.compile(".*(PASS|FAIL|SKIP) - (test_)?(.*)")
+result_re = re.compile(".*(PASS|FAIL|SKIP) - (test_)?(.*) in")
class Harness:
GCOV_START = "GCOV_COVERAGE_DUMP_START"