Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Lmod spider output in generated modules #1583

Merged
merged 10 commits into from Feb 23, 2016
4 changes: 2 additions & 2 deletions easybuild/tools/module_generator.py
Expand Up @@ -215,7 +215,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]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make the same change for the Lua module generator (line 438)


lines = [
"proc ModulesHelp { } {",
Expand Down Expand Up @@ -435,7 +435,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