Get the number of regular incremental steps to run, from the test source
(self, program_text: str)
| 189 | return result |
| 190 | |
| 191 | def get_build_steps(self, program_text: str) -> int: |
| 192 | """Get the number of regular incremental steps to run, from the test source""" |
| 193 | if not self.use_cache: |
| 194 | return 0 |
| 195 | m = re.search("# num_build_steps: ([0-9]+)$", program_text, flags=re.MULTILINE) |
| 196 | if m is not None: |
| 197 | return int(m.group(1)) |
| 198 | return 1 |
| 199 | |
| 200 | def perform_step( |
| 201 | self, |