From 6732fcd44a3356a018aa8ccd1f06515059f72d5a Mon Sep 17 00:00:00 2001 From: Seb M'Caw Date: Tue, 24 Sep 2024 10:28:03 +0000 Subject: [PATCH] Fix on MacOS --- testsuite/tests/index/git-local/test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testsuite/tests/index/git-local/test.py b/testsuite/tests/index/git-local/test.py index 5a73d98e6..9706246b3 100644 --- a/testsuite/tests/index/git-local/test.py +++ b/testsuite/tests/index/git-local/test.py @@ -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