From 090d5ecd5263686a47879f8a1a12a3ea416dc3a8 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 | 3 +++ 1 file changed, 3 insertions(+) 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