Skip to content

Commit d9621fb

Browse files
committed
Add purge_modules option to build and run
1 parent b2cb31a commit d9621fb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/pavilion/test_config/file_format.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,11 @@ class TestConfigLoader(yc.YamlConfigLoader):
747747
help_text='If True, test will fail if any of its build '
748748
'commands fail, rather than just the last '
749749
'command.'),
750+
yc.StrElem(
751+
'purge_modules', choices=["true", "false", "True", "False"],
752+
default="True",
753+
help_text="Whether or not to perform a module purge "
754+
"before building."),
750755
],
751756
help_text="The test build configuration. This will be "
752757
"used to dynamically generate a build script for "
@@ -835,6 +840,11 @@ class TestConfigLoader(yc.YamlConfigLoader):
835840
'but may vary. '
836841
'(In particular, the \'raw\' scheduler has a much higher limit.) '
837842
'Tests that use MPI should use this cautiously.'),
843+
yc.StrElem(
844+
'purge_modules', choices=["true", "false", "True", "False"],
845+
default="True",
846+
help_text="Whether or not to perform a module purge "
847+
"before running."),
838848
],
839849
help_text="The test run configuration. This will be used "
840850
"to dynamically generate a run script for the "

0 commit comments

Comments
 (0)