Skip to content

Commit 4be7afc

Browse files
committed
Change baseline update script to support a single set
1 parent fde5460 commit 4be7afc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

updateBaselineSolutions.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
source_solution_parent - the location to copy the files from. this is the parent directory of the cases; for example, `openfast/build/reg_tests/openfast`
2424
target_solution_parent - the location to copy the files to. this is the parent directory of the target cases; for example, `openfast/reg_tests/r-test/openfast`
2525
26-
Example: python updateBaselineSolutions.py caselist.txt source/solution/parent target/solution/parent [macos,linux,windows] [intel,gnu]
26+
Example: python updateBaselineSolutions.py caselist.txt source/solution/parent target/solution/parent
2727
"""
2828

2929
import sys
@@ -41,9 +41,9 @@ def exitWithDirNotFound(dir):
4141
##### Main
4242

4343
### Verify input arguments
44-
if len(sys.argv) != 6:
44+
if len(sys.argv) != 4:
4545
exitWithError("Invalid arguments: {}\n".format(" ".join(sys.argv)) +
46-
"Usage: python updateBaselineSolutions.py caselist.txt local/solution/parent baseline/solution/parent [macos,linux,windows] [intel,gnu]")
46+
"Usage: python updateBaselineSolutions.py caselist.txt local/solution/parent baseline/solution/parent")
4747

4848
with open(sys.argv[1]) as listfile:
4949
content = listfile.readlines()
@@ -55,16 +55,14 @@ def exitWithDirNotFound(dir):
5555

5656
sourceParent = sys.argv[2]
5757
targetParent = sys.argv[3]
58-
machine = sys.argv[4]
59-
compiler = sys.argv[5]
6058

6159
for case in casenames:
6260
# verify source directory exists. if not, bail
6361
if not os.path.isdir(sourceParent):
6462
exitWithDirNotFound(sourceParent)
6563

6664
# verify destination directory exists. if not, make it
67-
destinationDir = os.path.join(targetParent, case, "{}-{}".format(machine, compiler))
65+
destinationDir = os.path.join(targetParent, case)
6866
if not os.path.isdir(destinationDir):
6967
os.makedirs(destinationDir)
7068

0 commit comments

Comments
 (0)