File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
727727def test_use_module_path (run_reframe , user_exec_ctx ):
You can’t perform that action at this time.
0 commit comments