Skip to content

Commit

Permalink
Remove broken test for #368
Browse files Browse the repository at this point in the history
The issue was caused by self.show returning stdout and stderr
As it now returns only stderr the issue is no longer possible
  • Loading branch information
Flamefire committed Apr 30, 2020
1 parent 81c8bc7 commit 506397b
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/framework/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,24 +722,6 @@ def test_modulefile_path(self):
res = modtool.modulefile_path('bzip2/.1.0.6', strip_ext=True)
self.assertTrue(res.endswith('test/framework/modules/bzip2/.1.0.6'))

# hack into 'module show GCC/6.4.0-2.28' cache and inject alternate output that modulecmd.tcl sometimes produces
# make sure we only extract the module file path, nothing else...
# cfr. https://github.com/easybuilders/easybuild/issues/368
modulepath = os.environ['MODULEPATH'].split(':')
mod_show_cache_key = modtool.mk_module_cache_key('GCC/6.4.0-2.28')
mod.MODULE_SHOW_CACHE[mod_show_cache_key] = '\n'.join([
"import os",
"os.environ['MODULEPATH_modshare'] = '%s'" % ':'.join(m + ':1' for m in modulepath),
"os.environ['MODULEPATH'] = '%s'" % ':'.join(modulepath),
"------------------------------------------------------------------------------",
"%s:" % gcc_mod_file,
"------------------------------------------------------------------------------",
# remainder of output doesn't really matter in this context
"setenv EBROOTGCC /prefix/GCC/6.4.0-2.28"
])
res = modtool.modulefile_path('GCC/6.4.0-2.28')
self.assertTrue(os.path.samefile(res, os.path.join(test_dir, 'modules', 'GCC', '6.4.0-2.28')))

reset_module_caches()

def test_path_to_top_of_module_tree(self):
Expand Down

0 comments on commit 506397b

Please sign in to comment.