Skip to content

Check for Lmod explicitely in run_reframe.sh, as the EESSI module is a Lua module - #365

Merged
smoors merged 3 commits into
EESSI:mainfrom
casparvl:check_lmod_explicitely
Nov 11, 2026
Merged

smoors merged 3 commits into
EESSI:mainfrom
casparvl:check_lmod_explicitely

Conversation

@casparvl

Copy link
Copy Markdown
Collaborator

On a system with EnvironmentModules, I saw run_reframe.sh failing with

ESC[31mERROR: failed to initialize runtime: could not find a sane Lmod installation: environment variable LMOD_CMD is not definedESC[0m

That is understandable, since the EESSI modules are Lua modules and require Lmod specifically.

This fix makes the check stricter: rather than checking for 'a' module command, we now check if LMOD_CMD is defined. If not, we use EESSI's LMod.

Comment thread CI/run_reframe.sh Resolved

@smoors smoors left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@smoors
smoors merged commit fd581fb into EESSI:main Nov 11, 2026
16 checks passed
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.

2 participants