Skip to content

Commit

Permalink
Merge pull request #1583 from pescobar/lmod-spider-output
Browse files Browse the repository at this point in the history
fix Lmod spider output in generated modules
  • Loading branch information
boegel committed Feb 23, 2016
2 parents fa00e01 + 6ac767d commit 96340f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions easybuild/tools/module_generator.py
Expand Up @@ -225,7 +225,7 @@ def get_description(self, conflict=True):
whatis = self.app.cfg['whatis']
if whatis is None:
# default: include single 'whatis' statement with description as contents
whatis = [description]
whatis = ["Description: %s" % description]

lines = [
"proc ModulesHelp { } {",
Expand Down Expand Up @@ -462,7 +462,7 @@ def get_description(self, conflict=True):
whatis = self.app.cfg['whatis']
if whatis is None:
# default: include single 'whatis' statement with description as contents
whatis = [description]
whatis = ["Description: %s" % description]

lines = [
"help([[%(description)s]])",
Expand Down
4 changes: 2 additions & 2 deletions test/framework/module_generator.py
Expand Up @@ -83,7 +83,7 @@ def test_descr(self):
" }",
"}",
'',
"module-whatis {%s}" % gzip_txt,
"module-whatis {Description: %s}" % gzip_txt,
'',
"set root %s" % self.modgen.app.installdir,
'',
Expand All @@ -95,7 +95,7 @@ def test_descr(self):
expected = '\n'.join([
'help([[%s]])' % gzip_txt,
'',
"whatis([[%s]])" % gzip_txt,
"whatis([[Description: %s]])" % gzip_txt,
'',
'local root = "%s"' % self.modgen.app.installdir,
'',
Expand Down
4 changes: 2 additions & 2 deletions test/framework/toy_build.py
Expand Up @@ -798,7 +798,7 @@ def test_toy_module_fulltxt(self):
mod_txt_regex_pattern = '\n'.join([
r'help\(\[\[Toy C program. - Homepage: http://hpcugent.github.com/easybuild\]\]\)',
r'',
r'whatis\(\[\[Toy C program. - Homepage: http://hpcugent.github.com/easybuild\]\]\)',
r'whatis\(\[\[Description: Toy C program. - Homepage: http://hpcugent.github.com/easybuild\]\]\)',
r'',
r'local root = "%s/software/toy/0.0-tweaked"' % self.test_installpath,
r'',
Expand Down Expand Up @@ -830,7 +830,7 @@ def test_toy_module_fulltxt(self):
r' }',
r'}',
r'',
r'module-whatis {Toy C program. - Homepage: http://hpcugent.github.com/easybuild}',
r'module-whatis {Description: Toy C program. - Homepage: http://hpcugent.github.com/easybuild}',
r'',
r'set root %s/software/toy/0.0-tweaked' % self.test_installpath,
r'',
Expand Down

0 comments on commit 96340f2

Please sign in to comment.