Skip to content

Commit

Permalink
only print diff when failures
Browse files Browse the repository at this point in the history
  • Loading branch information
kbhargava-jump committed Nov 6, 2024
1 parent 7f89add commit 3cadfac
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/test_suite/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,14 @@ def run_tests(
if failed != 0 and save_failures:
print("Failures tests are in: ", globals.output_dir / "failed_protobufs")

binary_to_log_file = {
path.stem: log_file.name for path, log_file in target_log_files.items()
}
for (name1, file1), (name2, file2) in itertools.combinations(
binary_to_log_file.items(), 2
):
print(f"Diff between {name1} and {name2}: vimdiff {file1} {file2}")
if failed != 0:
binary_to_log_file = {
path.stem: log_file.name for path, log_file in target_log_files.items()
}
for (name1, file1), (name2, file2) in itertools.combinations(
binary_to_log_file.items(), 2
):
print(f"Diff between {name1} and {name2}: vimdiff {file1} {file2}")


@app.command(help=f"Convert Context and/or Fixture messages to human-readable format.")
Expand Down

0 comments on commit 3cadfac

Please sign in to comment.