Changeset cec5878 in rtems-tools


Ignore:
Timestamp:
Oct 21, 2017, 5:10:22 AM (2 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
f1e8fd4
Parents:
af6a54d
git-author:
Chris Johns <chrisj@…> (10/21/17 05:10:22)
git-committer:
Chris Johns <chrisj@…> (10/21/17 05:20:04)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester/rt/test.py

    raf6a54d rcec5878  
    3535import fnmatch
    3636import os
     37import re
    3738import sys
    3839import threading
     
    6566
    6667    def get(self):
    67         return self.log
     68        s = []
     69        status = []
     70        status_regx = re.compile('^\[\s*\d+/\s*\d+\] p:.+')
     71        for l in self.log:
     72            if status_regx.match(l):
     73                status += [l]
     74            else:
     75                if len(status) == 1:
     76                    s += [status[0]]
     77                    status = []
     78                elif len(status) > 1:
     79                    s += [status[0]]
     80                    if len(status) > 2:
     81                        s += [' <skipped passes>' + os.linesep]
     82                    s += [status[-1]]
     83                    status = []
     84                s += [l]
     85        return s
    6886
    6987class test(object):
Note: See TracChangeset for help on using the changeset viewer.