Skip to content

Commit 1575ed2

Browse files
committed
Be more careful on mistaking extension for extra_modules in _sanity_check_step
1 parent da5e0a2 commit 1575ed2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

easybuild/framework/easyblock.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4391,6 +4391,11 @@ def _sanity_check_step(self, custom_paths=None, custom_commands=None, extra_modu
43914391
:param extension: indicates whether or not sanity check is run for an extension
43924392
:param extra_modules: extra modules to load before running sanity check commands
43934393
"""
4394+
if extra_modules is not None and not isinstance(extra_modules, list):
4395+
if isinstance(extra_modules, bool):
4396+
self.log.nosupport("Do not pass `extension` to `_sanity_check_step`", '5.3.1')
4397+
raise EasyBuildError("extra_modules should be a list of module names, got %s (type: %s)",
4398+
extra_modules, type(extra_modules))
43944399
paths, path_keys_and_check, commands = self._sanity_check_step_common(custom_paths, custom_commands)
43954400

43964401
# helper function to sanity check (alternatives for) one particular path

0 commit comments

Comments
 (0)