diff options
| author | Martin Hořeňovský | 2017-01-16 20:21:43 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-01-16 20:21:43 +0100 |
| commit | b71a06cf989bed309e4bdf84e2fff22850f9d47c (patch) | |
| tree | 3a01ad179c4004d550938327ac7fc41ea52e06ab /scripts | |
| parent | 531d26739fa35fa6737b21301acd2f002d99791f (diff) | |
| download | catch3-b71a06cf989bed309e4bdf84e2fff22850f9d47c.tar.gz | |
JUnit reporter outputs timestamps now
Also extended approval tests script to support the change
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/approvalTests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/approvalTests.py b/scripts/approvalTests.py index 3e1b9a3b..d5bb6129 100644 --- a/scripts/approvalTests.py +++ b/scripts/approvalTests.py @@ -16,6 +16,7 @@ pathParser = re.compile(r'(.*?)/(.*\..pp)(.*)') lineNumberParser = re.compile(r'(.*)line="[0-9]*"(.*)') hexParser = re.compile(r'(.*)\b(0[xX][0-9a-fA-F]+)\b(.*)') durationsParser = re.compile(r'(.*)time="[0-9]*\.[0-9]*"(.*)') +timestampsParser = re.compile(r'(.*)timestamp="\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}Z"(.*)') versionParser = re.compile(r'(.*?)Catch v[0-9]*\.[0-9]*\.[0-9]*(.*)') devVersionParser = re.compile(r'(.*?)Catch v[0-9]*\.[0-9]*\.[0-9]*-develop\.[0-9]*(.*)') nullParser = re.compile(r'(.*?)\b(__null|nullptr)\b(.*)') @@ -73,6 +74,9 @@ def filterLine(line): m = durationsParser.match(line) if m: line = m.group(1) + 'time="{duration}"' + m.group(2) + m = timestampsParser.match(line) + if m: + line = m.group(1) + 'timestamp="{iso8601-timestamp}"' + m.group(2) return line |