Filter out version number from approval tests

This commit is contained in:
Phil Nash 2013-09-30 08:05:14 +01:00
parent 16c21ee265
commit a35ee200da
4 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CatchSelfTest is a Catch v1.0 b10 host application.
CatchSelfTest is a <version> host application.
Run with -? for options
-------------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CatchSelfTest is a Catch v1.0 b10 host application.
CatchSelfTest is a <version> host application.
Run with -? for options
-------------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CatchSelfTest is a Catch v1.0 b10 host application.
CatchSelfTest is a <version> host application.
Run with -? for options
-------------------------------------------------------------------------------

View File

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