mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-12 17:09:53 +01:00
22694335a5
Runs CATCH, filters results (truncates paths, removes hex digits which are probably pointers) then diffs the results)
14 lines
466 B
Python
14 lines
466 B
Python
import os
|
|
import sys
|
|
import shutil
|
|
|
|
catchPath = os.path.realpath(os.path.dirname(sys.argv[0]))
|
|
baselinesPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/results.txt' )
|
|
filteredResultsPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/newResults.txt' )
|
|
|
|
if os.path.isfile( filteredResultsPath ):
|
|
os.remove( baselinesPath )
|
|
os.rename( filteredResultsPath, baselinesPath )
|
|
else:
|
|
print "approval file " + filteredResultsPath + " does not exist"
|