Changing the module path for tests does not work when --export=ALL
not used with sbatch
#3245
Labels
Milestone
--export=ALL
not used with sbatch
#3245
From my understanding, when adding to the MODULEPATH (using
--module-path
orreframe.core.modules.ModulesSystem.searchpath_add()
), reframe runs the equivalent ofmodule use /path/to/modules/
in the reframe job and then launches the test job (e.g. using sbatch).When sbatch uses
--export=ALL
(which is the default behaviour), MODULEPATH will remain changed in the test environment. However, I am running on a system where this behaviour has been changed and changes to the environment need to be present in the job script. Usingprerun_cmds
to runmodule use
is also not ideal as these commands are injected after the modules are loaded in the job script.Could the
module use
commands be added to the job script in the same way thatmodule load
commands are? This would also make the tests reproducible from the job scripts alone, and clearer where modules have been loaded from for a specific test.The text was updated successfully, but these errors were encountered: