File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1187,6 +1187,8 @@ def test_handle_iterate_opts(self):
11871187 self .assertEqual (eb .cfg .iterating , True )
11881188 self .assertEqual (eb .cfg .iterate_options , ['configopts' ])
11891189 self .assertEqual (eb .cfg ['configopts' ], "--opt1 --anotheropt" )
1190+ # mimic easyblock that changes this in-place
1191+ eb .cfg ['preconfigopts' ] = "FOO=bar "
11901192 self .assertEqual (eb .iter_opts , expected_iter_opts )
11911193
11921194 # when next iteration is start, iteration index gets bumped
@@ -1198,6 +1200,8 @@ def test_handle_iterate_opts(self):
11981200 self .assertEqual (stdout , "== starting iteration #1 ...\n " )
11991201 self .assertEqual (eb .cfg .iterating , True )
12001202 self .assertEqual (eb .cfg .iterate_options , ['configopts' ])
1203+ # preconfigopts should have been restored (https://github.com/easybuilders/easybuild-framework/pull/4848)
1204+ self .assertEqual (eb .cfg ['preconfigopts' ], "" )
12011205 self .assertEqual (eb .cfg ['configopts' ], "--opt2" )
12021206 self .assertEqual (eb .iter_opts , expected_iter_opts )
12031207
You can’t perform that action at this time.
0 commit comments