|
55 | 55 | from easybuild.tools.filetools import adjust_permissions, change_dir, copy_file, mkdir, move_file
|
56 | 56 | from easybuild.tools.filetools import read_file, remove_dir, remove_file, which, write_file
|
57 | 57 | from easybuild.tools.module_generator import ModuleGeneratorTcl
|
58 |
| -from easybuild.tools.modules import Lmod |
| 58 | +from easybuild.tools.modules import EnvironmentModules, Lmod |
59 | 59 | from easybuild.tools.py2vs3 import reload, string_type
|
60 | 60 | from easybuild.tools.run import run_cmd
|
61 | 61 | from easybuild.tools.utilities import nub
|
@@ -2245,6 +2245,13 @@ def test_reproducibility_ext_easyblocks(self):
|
2245 | 2245 |
|
2246 | 2246 | def test_toy_toy(self):
|
2247 | 2247 | """Test building two easyconfigs in a single go, with one depending on the other."""
|
| 2248 | + |
| 2249 | + # skip when using Environment Modules tool, since this test generates an inconsistent environment |
| 2250 | + # (two modules with same name, expressing a reflexive conflict, one loading the other) |
| 2251 | + if isinstance(self.modtool, EnvironmentModules): |
| 2252 | + print("Skipping test_toy_toy because Environment Modules is being used") |
| 2253 | + return |
| 2254 | + |
2248 | 2255 | topdir = os.path.dirname(os.path.abspath(__file__))
|
2249 | 2256 | toy_ec_file = os.path.join(topdir, 'easyconfigs', 'test_ecs', 't', 'toy', 'toy-0.0.eb')
|
2250 | 2257 | toy_ec_txt = read_file(toy_ec_file)
|
|
0 commit comments