Skip to content

Commit

Permalink
chore: revert .git handling in e2e comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Selwyn-Smith <[email protected]>
  • Loading branch information
benmss committed Nov 6, 2023
1 parent b575dd9 commit f738040
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/e2e/compare_e2e_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,6 @@ def compare_target_info(result: dict, expected: dict) -> int:
for key, exp_item in expected.items():
result_item = result.get(key)

if key == "remote_path":
# Do not report differences that amount to only a trailing ".git"
if str(exp_item).endswith(".git"):
exp_item = str(exp_item).removesuffix(".git")
if str(result_item).endswith(".git"):
result_item = str(result_item).removesuffix(".git")

if exp_item != result_item:
logger.error(
"Compare failed at field %s. EXPECT %s, GOT %s",
Expand Down

0 comments on commit f738040

Please sign in to comment.