diff options
| author | Phil Nash | 2013-09-30 08:05:14 +0100 |
|---|---|---|
| committer | Phil Nash | 2013-09-30 08:05:14 +0100 |
| commit | a35ee200da177e406058af3f6df81de72993d953 (patch) | |
| tree | b8d0b6d498ec7740b44cec10c6b37a9fe6eaedf9 /scripts | |
| parent | 16c21ee2656d6e48fcddfe3f59ba5df8e9064fdc (diff) | |
| download | catch3-a35ee200da177e406058af3f6df81de72993d953.tar.gz | |
Filter out version number from approval tests
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 4d072378..f39553dd 100644 --- a/scripts/approvalTests.py +++ b/scripts/approvalTests.py @@ -12,6 +12,7 @@ filelineParser = re.compile( r'(.*\..pp:)([0-9]*)(.*)' ) 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]*"(.*)' ) +versionParser = re.compile( r'(.*?)Catch v[0-9]*.[0-9]* b[0-9]*(.*)' ) if len(sys.argv) == 2: cmdPath = sys.argv[1] @@ -31,6 +32,9 @@ def filterLine( line ): m = lineNumberParser.match( line ) if m: line = m.group(1) + m.group(2) + m = versionParser.match( line ) + if m: + line = m.group(1) + "<version>" + m.group(2) while True: m = hexParser.match( line ) |