Skip to content

Commit 85c9fd2

Browse files
author
Samuel Moors
committed
add total iteration count to trace output
1 parent 87b3d9d commit 85c9fd2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

easybuild/framework/easyblock.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2387,7 +2387,8 @@ def handle_iterate_opts(self):
23872387
self.log.debug("Iterating opt %s: %s", opt, self.iter_opts[opt])
23882388

23892389
if self.iter_opts:
2390-
print_msg("starting iteration #%s ..." % self.iter_idx, log=self.log, silent=self.silent)
2390+
print_msg(f"starting iteration number {self.iter_idx + 1}/{self.iter_cnt} ...", log=self.log,
2391+
silent=self.silent)
23912392
self.log.info("Current iteration index: %s", self.iter_idx)
23922393

23932394
# pop first element from all iterative easyconfig parameters as next value to use
@@ -4794,7 +4795,8 @@ def run_all_steps(self, run_test_cases):
47944795
if self.cfg['stop'] == 'cfg':
47954796
return True
47964797

4797-
steps = self.get_steps(run_test_cases=run_test_cases, iteration_count=self.det_iter_cnt())
4798+
self.iter_cnt = self.det_iter_cnt()
4799+
steps = self.get_steps(run_test_cases=run_test_cases, iteration_count=self.iter_cnt)
47984800

47994801
# figure out how many steps will actually be run (not be skipped)
48004802
step_cnt = 0

0 commit comments

Comments
 (0)