Skip to content

Commit

Permalink
Merge pull request #3 from boegel/clang-toolchains
Browse files Browse the repository at this point in the history
fix module load unit test + one very minor enhancement
  • Loading branch information
gribozavr committed Apr 13, 2013
2 parents 934f0d4 + 7b2f72c commit cd4635e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion easybuild/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ def mk_node_name(mod):
gv.layout(gvv, 'dot')
gv.render(gvv, fn.split('.')[-1], fn)

print "Wrote dependency graph to %s" % fn
print "Wrote dependency graph for %d easyconfigs to %s" % (len(specs), fn)

def write_to_xml(succes, failed, filename):
"""
Expand Down
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 cd4635e

Please sign in to comment.