Skip to content

Commit 11e43ea

Browse files
committed
strip out captured log part
1 parent f397289 commit 11e43ea

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

codeflash/verification/parse_test_output.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def parse_func(file_path: Path) -> XMLParser:
4343

4444

4545
matches_re = re.compile(r"!######(.*?):(.*?)([^\.:]*?):(.*?):(.*?):(.*?)######!")
46-
cleaner_re = re.compile(r"!######(.*?)######!")
46+
cleaner_re = re.compile(r"!######.*?######!|-+\s*Captured\s+(Log|Out)\s*-+\n?")
47+
4748

4849

4950
def parse_test_return_values_bin(file_location: Path, test_files: TestFiles, test_config: TestConfig) -> TestResults:

tests/test_instrument_all_and_run.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,7 @@ def test_sort():
169169
testing_time=0.1,
170170
)
171171

172-
out_str = """--------------------------------- Captured Log ---------------------------------
173-
174-
--------------------------------- Captured Out ---------------------------------
175-
176-
codeflash stdout: Sorting list
172+
out_str = """codeflash stdout: Sorting list
177173
result: [0, 1, 2, 3, 4, 5]
178174
179175
codeflash stdout: Sorting list

tests/test_instrument_tests.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,7 @@ def test_sort():
482482
)
483483
assert test_results_perf[1].runtime > 0
484484
assert test_results_perf[1].did_pass
485-
out_str = """--------------------------------- Captured Log ---------------------------------
486-
487-
--------------------------------- Captured Out ---------------------------------
488-
codeflash stdout: Sorting list
485+
out_str = """codeflash stdout: Sorting list
489486
result: [0, 1, 2, 3, 4, 5]
490487
491488
codeflash stdout: Sorting list

0 commit comments

Comments
 (0)