[rtems-tools commit] tester: Remove pass status messages from the email log posts.

Chris Johns chrisj at rtems.org
Sat Oct 21 05:20:32 UTC 2017


Module:    rtems-tools
Branch:    master
Commit:    cec5878ad30cd07aaf49249352534c95d72f6848
Changeset: http://git.rtems.org/rtems-tools/commit/?id=cec5878ad30cd07aaf49249352534c95d72f6848

Author:    Chris Johns <chrisj at rtems.org>
Date:      Sat Oct 21 16:10:22 2017 +1100

tester: Remove pass status messages from the email log posts.

---

 tester/rt/test.py | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

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):




More information about the vc mailing list