diff options
author | Chris Johns <chrisj@rtems.org> | 2017-10-21 16:10:22 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2017-10-21 16:20:04 +1100 |
commit | cec5878ad30cd07aaf49249352534c95d72f6848 (patch) | |
tree | 5ae86fc05858e6949608cd3f14e43bc8b4779b69 | |
parent | tester: Use a target ON command before the first test. (diff) | |
download | rtems-tools-cec5878ad30cd07aaf49249352534c95d72f6848.tar.bz2 |
tester: Remove pass status messages from the email log posts.
-rw-r--r-- | tester/rt/test.py | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/tester/rt/test.py b/tester/rt/test.py index c67bb54..bfc0f5f 100644 --- a/tester/rt/test.py +++ b/tester/rt/test.py @@ -34,6 +34,7 @@ import copy import datetime import fnmatch import os +import re import sys import threading import time @@ -64,7 +65,24 @@ class log_capture(object): self.log += [l for l in text.replace(chr(13), '').splitlines()] def get(self): - return self.log + s = [] + status = [] + status_regx = re.compile('^\[\s*\d+/\s*\d+\] p:.+') + for l in self.log: + if status_regx.match(l): + status += [l] + else: + if len(status) == 1: + s += [status[0]] + status = [] + elif len(status) > 1: + s += [status[0]] + if len(status) > 2: + s += [' <skipped passes>' + os.linesep] + s += [status[-1]] + status = [] + s += [l] + return s class test(object): def __init__(self, index, total, report, executable, rtems_tools, bsp, bsp_config, opts): |