mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 14:09:26 +00:00
Moved scripts into their own folder
This commit is contained in:
parent
f155366cf2
commit
f4254b8622
3 changed files with 8 additions and 8 deletions
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"
|
Loading…
Add table
Add a link
Reference in a new issue