Skip to content

Commit

Permalink
Merge pull request #609 from JensTimmerman/ignore_module_warnings
Browse files Browse the repository at this point in the history
Ignore some error codes that can be given by modulecmd, these can happen...
  • Loading branch information
boegel committed Apr 25, 2013
2 parents c2d02d9 + 37209ff commit 8354361
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion easybuild/tools/modules.py
Expand Up @@ -57,7 +57,10 @@
# matches whitespace and module-listing headers
'whitespace': re.compile(r"^\s*$|^(-+).*(-+)$"),
# matches errors such as "cmdTrace.c(713):ERROR:104: 'asdfasdf' is an unrecognized subcommand"
'error': re.compile(r"^\S+:(?P<level>\w+):(?P<code>\d+):\s+(?P<msg>.*)$"),
## following errors should not be matches, they are considered warnings
# ModuleCmd_Avail.c(529):ERROR:57: Error while reading directory '/usr/local/modulefiles/SCIENTIFIC'
# ModuleCmd_Avail.c(804):ERROR:64: Directory '/usr/local/modulefiles/SCIENTIFIC/tremolo' not found
'error': re.compile(r"^\S+:(?P<level>\w+):(?P<code>(?!57|64)\d+):\s+(?P<msg>.*)$"),
# available with --terse has one module per line
# matches modules such as "ictce/3.2.1.015.u4(default)"
# line ending with : is ignored (the modulepath in --terse)
Expand Down

0 comments on commit 8354361

Please sign in to comment.