Skip to content

Conversation

@ekouts
Copy link
Contributor

@ekouts ekouts commented Sep 23, 2022

The output will look something like this:

$ reframe -m wrong_module -v ...
[ReFrame Setup]
...

./bin/reframe: could not load module 'wrong_module' correctly
Log file(s) saved in ...

With -vv then the output is:

$ reframe -m wrong_module -vv ...
[ReFrame Setup]
...

./bin/reframe: could not load module 'wrong_module' correctly
./bin/reframe: could not execute module operation: command 'modulecmd python show wrong_module' failed with exit code 0:
--- stdout ---
--- stdout ---
--- stderr ---
ModuleCmd_Display.c(157):ERROR:105: Unable to locate a modulefile for 'wrong_module'


--- stderr ---
Log file(s) saved in ...

Closes #2597 .

@codecov-commenter
Copy link

codecov-commenter commented Sep 23, 2022

Codecov Report

Base: 86.69% // Head: 86.68% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (67db7c9) compared to base (9f0d167).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2603      +/-   ##
==========================================
- Coverage   86.69%   86.68%   -0.01%     
==========================================
  Files          59       59              
  Lines       10868    10869       +1     
==========================================
  Hits         9422     9422              
- Misses       1446     1447       +1     
Impacted Files Coverage Δ
reframe/frontend/cli.py 72.18% <0.00%> (-0.12%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@vkarak vkarak changed the title Stop execution with an error when a cli module fails to load [feat] Stop execution with an error when a cli module fails to load Sep 23, 2022
@ekouts ekouts requested a review from vkarak September 26, 2022 10:02
@vkarak vkarak merged commit 2076f04 into reframe-hpc:master Sep 26, 2022
@ekouts ekouts deleted the module_warning branch September 28, 2022 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

failed load of user module with command line option --module does not cause failed tests.

3 participants