[tools] tester: Check for begin/end of test
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Oct 6 07:29:04 UTC 2022
Check for "BEGIN OF TEST" and "END OF TEST" to not use other information blocks
such as "END OF GCOV" to determine the test status.
---
tester/rt/report.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tester/rt/report.py b/tester/rt/report.py
index d3bf1cb..21580e2 100644
--- a/tester/rt/report.py
+++ b/tester/rt/report.py
@@ -144,11 +144,11 @@ class report(object):
if line[0] == output_prefix:
if line[1].startswith('*** '):
banner = line[1][4:]
- if banner.startswith('BEGIN OF '):
+ if banner.startswith('BEGIN OF TEST '):
start = True
- elif line[1][4:].startswith('END OF '):
+ elif banner.startswith('END OF TEST '):
end = True
- elif line[1][4:].startswith('FATAL'):
+ elif banner.startswith('FATAL'):
fatal = True
elif banner.startswith('TIMEOUT TIMEOUT'):
timeout = True
--
2.35.3
More information about the devel
mailing list