Skip to content

Commit 67cbba6

Browse files
authored
Merge pull request AMReX-Codes#6 from atmyers/blank_check
allow suite.plot_file_name and suite.check_file_name to be blank
2 parents bfb4566 + 32aa5af commit 67cbba6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

regtest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,11 @@ def test_suite(argv):
661661

662662
if suite.sourceTree == "C_Src" or test.testSrcTree == "C_Src":
663663

664-
base_cmd = "./{} {} {}={}_plt {}={}_chk".format(
665-
executable, test.inputFile, suite.plot_file_name, test.name, suite.check_file_name, test.name)
664+
base_cmd = "./{} {} ".format(executable, test.inputFile)
665+
if suite.plot_file_name != "":
666+
base_cmd += "{}={}_plt ".format(suite.plot_file_name, test.name)
667+
if suite.plot_file_name != "":
668+
base_cmd += "{}={}_chk".format(suite.check_file_name, test.name)
666669

667670
# keep around the checkpoint files only for the restart runs
668671
if test.restartTest:

0 commit comments

Comments
 (0)