Skip to content

Commit 066d140

Browse files
author
Samuel Moors
committed
calculate number of iterations in init
1 parent 85c9fd2 commit 066d140

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

easybuild/framework/easyblock.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ def __init__(self, ec, logfile=None):
311311
# initialize logger
312312
self._init_log()
313313

314+
# number of iterations
315+
self.iter_cnt = self.det_iter_cnt()
316+
314317
# try and use the specified group (if any)
315318
group_name = build_option('group')
316319
group_spec = self.cfg['group']
@@ -4795,7 +4798,6 @@ def run_all_steps(self, run_test_cases):
47954798
if self.cfg['stop'] == 'cfg':
47964799
return True
47974800

4798-
self.iter_cnt = self.det_iter_cnt()
47994801
steps = self.get_steps(run_test_cases=run_test_cases, iteration_count=self.iter_cnt)
48004802

48014803
# figure out how many steps will actually be run (not be skipped)

0 commit comments

Comments
 (0)