Skip to content

Commit

Permalink
Fix on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb-MCaw committed Sep 24, 2024
1 parent 765144d commit 6732fcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testsuite/tests/index/git-local/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ def run(*args, **kwargs):
return sp

def check_index_is_configured(name, url, path):
# On MacOS, /var/ is a symlink to /private/var/. Since the full pattern
# below prepends a ".*", "/var/" will match both.
if path.startswith("/private/var"):
path = path.removeprefix("/private")
assert_match(
rf".*\d+.*{re.escape(name)}.*{re.escape(url)}.*{re.escape(path)}",
run_alr("index", "--list").out
Expand Down

0 comments on commit 6732fcd

Please sign in to comment.