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 090d5ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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,9 @@ def run(*args, **kwargs):
return sp

def check_index_is_configured(name, url, path):
# On MacOS, /var/ is a symlink for /private/var/. Since the full match
# string below prepends a ".*", "/var" will match both.
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 090d5ec

Please sign in to comment.