Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion reg_tests/executeAerodiskRegressionCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
if not os.path.isdir(inputsDirectory):
rtl.exitWithError("The test data inputs directory, {}, does not exist. Verify your local repository is up to date.".format(inputsDirectory))

rtl.copyTree(inputsDirectory, testBuildDirectory, renameDict={'adsk_driver.outb':'adsk_driver_ref.outb'})
if not os.path.isdir(testBuildDirectory):
rtl.copyTree(inputsDirectory, testBuildDirectory, renameDict={'adsk_driver.outb':'adsk_driver_ref.outb'})

### Run aerodisk on the test case
if not noExec:
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/executeAerodynPyRegressionCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@


# create the local output directory and initialize it with input files
rtl.copyTree(inputsDirectory, testBuildDirectory, renameDict={'py_ad_driver.out':'py_ad_driver_ref.out'})
if not os.path.isdir(testBuildDirectory):
rtl.copyTree(inputsDirectory, testBuildDirectory, renameDict={'py_ad_driver.out':'py_ad_driver_ref.out'})
# , excludeExt=['.out','.outb'])

### Run aerodyn on the test case
Expand Down
10 changes: 3 additions & 7 deletions reg_tests/executeAerodynRegressionCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,12 @@
# Special case, copy the BAR Baseline files
dst = os.path.join(buildDirectory, "BAR_Baseline")
src = os.path.join(moduleDirectory, "BAR_Baseline")
try:
if not os.path.isdir(dst):
rtl.copyTree(src, dst)
except:
# This can fail if two processes are copying the file at the same time
print('>>> Copy failed')
import time
time.sleep(1)

# create the local output directory and initialize it with input files
rtl.copyTree(inputsDirectory, testBuildDirectory, renameDict={'ad_driver.outb':'ad_driver_ref.outb'})
if not os.path.isdir(testBuildDirectory):
rtl.copyTree(inputsDirectory, testBuildDirectory, renameDict={'ad_driver.outb':'ad_driver_ref.outb'})
# , excludeExt=['.out','.outb'])

### Run aerodyn on the test case
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/executeHydrodynPyRegressionCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@


# create the local output directory and initialize it with input files
rtl.copyTree(inputsDirectory, testBuildDirectory)
if not os.path.isdir(testBuildDirectory):
rtl.copyTree(inputsDirectory, testBuildDirectory)
# , excludeExt=['.out','.outb'])

### Run HydroDyn on the test case
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/executeMoordynPyRegressionCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
rtl.exitWithError("The test data inputs directory, {}, does not exist. Verify your local repository is up to date.".format(inputsDirectory))

# create the local output directory and initialize it with input files
rtl.copyTree(inputsDirectory, testBuildDirectory, renameDict={'MD.out':'MD_ref.out','MDroot.MD.out':'MDroot.MD_ref.out'})
if not os.path.isdir(testBuildDirectory):
rtl.copyTree(inputsDirectory, testBuildDirectory, renameDict={'MD.out':'MD_ref.out','MDroot.MD.out':'MDroot.MD_ref.out'})
# , excludeExt=['.out','.outb'])

### Run MoorDyn on the test case
Expand Down
4 changes: 2 additions & 2 deletions reg_tests/executeOpenfastLinearRegressionCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def indent(msg, sindent='\t'):
shutil.copy2(srcname, dstname)
#
# Copying the actual test directory
# if not os.path.isdir(testBuildDirectory):
rtl.copyTree(inputsDirectory, testBuildDirectory, excludeExt=excludeExt, renameExtDict={'.lin':'.ref_lin'})
if not os.path.isdir(testBuildDirectory):
rtl.copyTree(inputsDirectory, testBuildDirectory, excludeExt=excludeExt, renameExtDict={'.lin':'.ref_lin'})

### Run openfast on the test case
if not noExec:
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/executeSimpleElastodynRegressionCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
if not os.path.isdir(inputsDirectory):
rtl.exitWithError("The test data inputs directory, {}, does not exist. Verify your local repository is up to date.".format(inputsDirectory))

rtl.copyTree(inputsDirectory, testBuildDirectory, renameDict={'sed_driver.outb':'sed_driver_ref.outb'})
if not os.path.isdir(testBuildDirectory):
rtl.copyTree(inputsDirectory, testBuildDirectory, renameDict={'sed_driver.outb':'sed_driver_ref.outb'})

### Run SED on the test case
if not noExec:
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/executeSubdynRegressionCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
rtl.exitWithError("The test data inputs directory, {}, does not exist. Verify your local repository is up to date.".format(inputsDirectory))

# create the local output directory and initialize it with input files (overwrite if exists)
rtl.copyTree(inputsDirectory, testBuildDirectory, renameExtDict={'.out':'_ref.out'}, includeExt=['.dvr','.dat','.out','.csv'])
if not os.path.isdir(testBuildDirectory):
rtl.copyTree(inputsDirectory, testBuildDirectory, renameExtDict={'.out':'_ref.out'}, includeExt=['.dvr','.dat','.out','.csv'])


### Run SubDyn on the test case
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/executeUnsteadyAeroRegressionCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
# create the local output directory and initialize it with input files
renameDict={'UA'+str(i)+'.outb':'UA'+str(i)+'_ref.outb' for i in [2,3,4,5,6,7]}

rtl.copyTree(inputsDirectory, testBuildDirectory, renameDict=renameDict
if not os.path.isdir(testBuildDirectory):
rtl.copyTree(inputsDirectory, testBuildDirectory, renameDict=renameDict
, excludeExt=['.sum'])
# , excludeExt=['.out','.outb','.sum'])

Expand Down