Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions reframe/frontend/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,11 +1240,12 @@ def module_unuse(*paths):
try:
rt.modules_system.load_module(**m, force=True)
except errors.EnvironError as e:
printer.warning(
f'could not load module {m["name"]!r} correctly; '
f'skipping...'
printer.error(
f'could not load module {m["name"]!r} correctly; rerun '
f'with -vv for more information'
)
printer.debug(str(e))
sys.exit(1)

options.flex_alloc_nodes = options.flex_alloc_nodes or 'idle'

Expand Down
2 changes: 1 addition & 1 deletion unittests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ def test_unuse_module_path(run_reframe, user_exec_ctx):
ms.searchpath_remove(module_path)
assert "could not load module 'testmod_foo' correctly" in stdout
assert 'Traceback' not in stderr
assert returncode == 0
assert returncode == 1


def test_use_module_path(run_reframe, user_exec_ctx):
Expand Down