Skip to content

Commit

Permalink
fix load test modules unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Apr 13, 2013
1 parent 503b932 commit 7b2f72c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion easybuild/test/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,16 @@ def test_load(self):
testmods = modules.Modules([os.path.join(os.path.dirname(__file__), 'modules')])
ms = testmods.available('', None)
for m in ms:
testmods.purge()
testmods.add_module([m])
testmods.load()

tmp = {"name": m[0], "version": m[1]}
assert(tmp in testmods.loaded_modules())

# remove module again and purge to avoid conflicts when loading modules
testmods.remove_module([m])
testmods.purge()

def test_LD_LIBRARY_PATH(self):
"""Make sure LD_LIBRARY_PATH is what it should be when loaded multiple modules."""

Expand Down

0 comments on commit 7b2f72c

Please sign in to comment.