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>
This commit is contained in:
Enjia Mai 2021-03-07 14:08:31 +08:00 committed by Anas Nashif
commit 2c5e2c2394
2 changed files with 35 additions and 7 deletions

View file

@ -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"