mirror of
https://github.com/catchorg/Catch2.git
synced 2025-12-14 22:22:12 +01:00
Moved scripts into their own folder
This commit is contained in:
13
scripts/approve.py
Normal file
13
scripts/approve.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
import sys
|
||||
import shutil
|
||||
|
||||
catchPath = os.path.realpath(os.path.dirname(sys.argv[0]))
|
||||
baselinesPath = os.path.join( catchPath, '../projects/SelfTest/Baselines/approvedResults.txt' )
|
||||
filteredResultsPath = os.path.join( catchPath, '../projects/SelfTest/Baselines/unapprovedResults.txt' )
|
||||
|
||||
if os.path.isfile( filteredResultsPath ):
|
||||
os.remove( baselinesPath )
|
||||
os.rename( filteredResultsPath, baselinesPath )
|
||||
else:
|
||||
print "approval file " + filteredResultsPath + " does not exist"
|
||||
Reference in New Issue
Block a user