Skip to content

Commit

Permalink
Do not compare tex files
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-schesch committed Sep 22, 2024
1 parent 5792214 commit dc73e67
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions test/check_equal_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,6 @@ def remove_run_time(df):
goal_folder = Path(args.goal_folder)
actual_folder = Path(args.actual_folder)

for goal_file in goal_folder.glob("**/*.tex"):
goal_file = goal_file.relative_to(goal_folder)
print(f"Checking {goal_file}")
actual_file = actual_folder / goal_file
assert actual_file.exists(), f"{actual_file} does not exist"
with open(goal_folder / goal_file, "r") as goal_f:
goal_lines = goal_f.readlines()
with open(actual_file, "r") as actual_f:
actual_lines = actual_f.readlines()
if goal_lines != actual_lines:
print(f"{goal_folder/goal_file} and {actual_file} are not equal")
print("Goal file:")
print("".join(goal_lines))
print("Actual file:")
print("".join(actual_lines))
raise ValueError(f"{goal_folder/goal_file} and {actual_file} are not equal")

for goal_file in goal_folder.glob("**/*.csv"):
goal_file = goal_file.relative_to(goal_folder)
print(f"Checking {goal_file}")
Expand Down

0 comments on commit dc73e67

Please sign in to comment.