Hi Riccardo,
On 03/03/15 10:11, Riccardo Murri wrote:
Hi Ken, all,
(Kenneth Hoste, Mon, Mar 02, 2015 at 05:35:09PM +0100:)
After updating, you can run this test (which may be joined by other general
tests later) by running the group of 'general' tests:
python -m test.framework.general
This tests fails in my environment::
(easybuild)rmurri@xenia:~/gc3/src/easybuild-framework$ python -m
test.framework.general
E
======================================================================
ERROR: test_vsc_location (__main__.GeneralTest)
Make sure location of imported vsc module is not the framework itself.
----------------------------------------------------------------------
Traceback (most recent call last):
File "test/framework/utilities.py", line 136, in setUp
modtool = modules_tool()
File "easybuild/tools/modules.py", line 987, in modules_tool
return modules_tool_class(mod_paths=mod_paths, testing=testing)
File
"/home/rmurri/.virtualenvs/easybuild/local/lib/python2.7/site-packages/vsc_base-2.0.3-py2.7.egg/vsc/utils/patterns.py",
line 51, in __call__
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
File "easybuild/tools/modules.py", line 174, in __init__
self.check_cmd_avail()
File "easybuild/tools/modules.py", line 231, in check_cmd_avail
self.log.error("%s modules tool can not be used, '%s' command is not
available." % (mod_tool, self.cmd))
File "easybuild/tools/build_log.py", line 114, in error
raise EasyBuildError(newMsg)
EasyBuildError: "EasyBuild crashed with an error (at
easybuild/tools/modules.py:231 in check_cmd_avail): EnvironmentModulesC modules tool can
not be used, 'modulecmd' command is not available."
----------------------------------------------------------------------
Ran 1 test in 0.141s
FAILED (errors=1)
However, I *do* have Lmod installed and configured::
(easybuild)rmurri@xenia:~/gc3/src/easybuild-framework$ module --version
Modules based on Lua: Version 5.8 2014-11-04 12:46
by Robert McLay [email protected]
(easybuild)rmurri@xenia:~/gc3/src/easybuild-framework$ echo
$EASYBUILD_MODULES_TOOL
Lmod
Do the tests hard-code a dependency on the "C" version of environment
modules?
The tests run with a default configuration, i.e. with the Tcl/C version
of environment modules, and are now totally isolated from your
configuration (any $EASYBUILD_X environment variables (and EasyBuild
config files) are ignored, on purpose).
You can however configure the tests to use a non-default setup, by
defining $TEST_EASYBUILD_MODULES_TOOL=Lmod, for example.
See
http://easybuild.readthedocs.org/en/develop/Unit-tests.html#modules-tool-to-use-for-running-tests
and the example at
http://easybuild.readthedocs.org/en/develop/Unit-tests.html#running .
regards,
Kenneth