Skip to content

Commit 1535bc9

Browse files
committed
Adapt test to changed iter_opts dict
1 parent 3052441 commit 1535bc9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/framework/easyblock.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
from easybuild.base import fancylogger
4545
from easybuild.framework.easyblock import EasyBlock, get_easyblock_instance
4646
from easybuild.framework.easyconfig import CUSTOM
47-
from easybuild.framework.easyconfig.easyconfig import EasyConfig
47+
from easybuild.framework.easyconfig.easyconfig import EasyConfig, ITERATE_OPTIONS
4848
from easybuild.framework.easyconfig.tools import avail_easyblocks, process_easyconfig
4949
from easybuild.framework.extensioneasyblock import ExtensionEasyBlock
5050
from easybuild.tools import LooseVersion, config
@@ -1173,7 +1173,9 @@ def test_handle_iterate_opts(self):
11731173
self.assertEqual(eb.cfg.iterate_options, [])
11741174
self.assertEqual(eb.cfg['configopts'], ["--opt1 --anotheropt", "--opt2", "--opt3 --optbis"])
11751175

1176-
expected_iter_opts = {'configopts': ["--opt1 --anotheropt", "--opt2", "--opt3 --optbis"]}
1176+
expected_iter_opts = dict.fromkeys(ITERATE_OPTIONS, "")
1177+
expected_iter_opts['builddependencies'] = []
1178+
expected_iter_opts['configopts'] = ["--opt1 --anotheropt", "--opt2", "--opt3 --optbis"]
11771179

11781180
# once iteration mode is set, we're still in iteration #0
11791181
self.mock_stdout(True)

0 commit comments

Comments
 (0)