Skip to content

Commit 08284b6

Browse files
committed
Fix handling of runtest resetting
1 parent 4f87e2a commit 08284b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

easybuild/easyblocks/generic/bundle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ def __init__(self, *args, **kwargs):
166166
# which is not a valid value for many easyblocks.
167167
# Reset runtest to the original default, if people want the test step
168168
# they can set it explicitly, in default_component_specs or by the component easyblock
169-
if not is_easyconfig_parameter_default_value('runtest', comp_cfg._config['runtest']):
169+
if not is_easyconfig_parameter_default_value('runtest', comp_cfg.get('runtest', resolve=False)):
170170
self.log.warning(
171171
"Resetting runtest to default value for component easyblock "
172-
f"(from {comp_cfg._config['runtest']})."
172+
f"(from {comp_cfg.get('runtest', resolve=False)})."
173173
)
174-
comp_cfg._config['runtest'] = get_easyconfig_parameter_default('runtest')
174+
comp_cfg['runtest'] = get_easyconfig_parameter_default('runtest')
175175

176176
# Reset others to their default value
177177
# Inheriting easyblock would lead to an infinite loop in the install step

0 commit comments

Comments
 (0)