Skip to content

Commit 949a933

Browse files
authored
Merge branch 'master' into add/flux-framework-scheduler
2 parents d3fa847 + 2076f04 commit 949a933

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

reframe/frontend/cli.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,11 +1240,12 @@ def module_unuse(*paths):
12401240
try:
12411241
rt.modules_system.load_module(**m, force=True)
12421242
except errors.EnvironError as e:
1243-
printer.warning(
1244-
f'could not load module {m["name"]!r} correctly; '
1245-
f'skipping...'
1243+
printer.error(
1244+
f'could not load module {m["name"]!r} correctly; rerun '
1245+
f'with -vv for more information'
12461246
)
12471247
printer.debug(str(e))
1248+
sys.exit(1)
12481249

12491250
options.flex_alloc_nodes = options.flex_alloc_nodes or 'idle'
12501251

unittests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ def test_unuse_module_path(run_reframe, user_exec_ctx):
721721
ms.searchpath_remove(module_path)
722722
assert "could not load module 'testmod_foo' correctly" in stdout
723723
assert 'Traceback' not in stderr
724-
assert returncode == 0
724+
assert returncode == 1
725725

726726

727727
def test_use_module_path(run_reframe, user_exec_ctx):

0 commit comments

Comments
 (0)