Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorPhil Nash2013-09-30 08:05:14 +0100
committerPhil Nash2013-09-30 08:05:14 +0100
commita35ee200da177e406058af3f6df81de72993d953 (patch)
treeb8d0b6d498ec7740b44cec10c6b37a9fe6eaedf9 /scripts
parent16c21ee2656d6e48fcddfe3f59ba5df8e9064fdc (diff)
downloadcatch3-a35ee200da177e406058af3f6df81de72993d953.tar.gz
Filter out version number from approval tests
Diffstat (limited to 'scripts')
-rw-r--r--scripts/approvalTests.py4
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 )