Skip to content

Commit 02829f4

Browse files
committed
more regex?
1 parent 5d542d2 commit 02829f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/scripts/end_to_end_test_utilities.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ def validate_output(stdout: str, return_code: int, expected_improvement_pct: int
181181
return False
182182

183183
if config.expected_unit_tests is not None:
184-
unit_test_match = re.search(r"Discovered (\d+) existing unit tests? and", stdout)
184+
# Match the global test discovery message from optimizer.py
185+
# Format: "Discovered X existing unit tests and Y replay tests in Z.Zs at /path/to/tests"
186+
unit_test_match = re.search(r"Discovered (\d+) existing unit tests? and \d+ replay tests? in", stdout)
185187
if not unit_test_match:
186188
logging.error("Could not find unit test count")
187189
return False

0 commit comments

Comments
 (0)