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

only use environment variable to find module command binary if command can't be found in $PATH #1275

Merged
merged 3 commits into from
May 6, 2015

Conversation

boegel
Copy link
Member

@boegel boegel commented May 6, 2015

If lmod is found in $PATH, we shouldn't be using the value of $LMOD_CMD to determine the path to lmod.

When Lmod is available both on the system and in the user's account, we may end up using the wrong lmod binary that way (cfr. Taito @ CSC.fi).

@hpcugentbot
Copy link

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1690/
Test PASSed.

@@ -122,7 +122,7 @@ class ModulesTool(object):
TERSE_OPTION = (0, '--terse')
# module command to use
COMMAND = None
# environment variable to determine the module command (instead of COMMAND)
# environment variable that may refer to module command
Copy link
Contributor

Choose a reason for hiding this comment

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

missing documentation how it resolves it now.

Copy link
Member Author

Choose a reason for hiding this comment

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

@hpcugentbot
Copy link

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1692/
Test FAILed.

…ia $PATH, enhance test_lmod_specific unit test
@hpcugentbot
Copy link

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1693/
Test PASSed.

@boegel
Copy link
Member Author

boegel commented May 6, 2015

Thanks for the review @stdweird!

boegel added a commit that referenced this pull request May 6, 2015
only use environment variable to find module command binary if command can't be found in $PATH
@boegel boegel merged commit cf7ebfb into easybuilders:develop May 6, 2015
@boegel boegel deleted the LMOD_CMD branch May 6, 2015 22:21
boegel added a commit that referenced this pull request May 6, 2015
only use environment variable to find module command binary if command can't be found in $PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants