diff --git a/testsuite/tests/index/git-local/test.py b/testsuite/tests/index/git-local/test.py index 5a73d98e6..13fa68c19 100644 --- a/testsuite/tests/index/git-local/test.py +++ b/testsuite/tests/index/git-local/test.py @@ -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