From 0ab1a01121be2123157316d013cc4405fc684ec4 Mon Sep 17 00:00:00 2001 From: Seb M'Caw Date: Fri, 18 Oct 2024 11:35:31 +0000 Subject: [PATCH] Use less fragile test for git failure --- testsuite/tests/index/git-local/test.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/testsuite/tests/index/git-local/test.py b/testsuite/tests/index/git-local/test.py index ce33d0603..67c403f74 100644 --- a/testsuite/tests/index/git-local/test.py +++ b/testsuite/tests/index/git-local/test.py @@ -93,9 +93,7 @@ def check_index_works(): "index", "--name", "my_index", "--add", "git+file:my_index", complain_on_error=False ) -unix_pattern = "repository '.*my_index' does not exist" -windows_pattern = "'.*my_index' does not appear to be a git repository" -assert_match(f".*({unix_pattern}|{windows_pattern})", p.out) +assert_match(r'.*Command \["git", "clone", ".*"\] exited with code 128', p.out) # Initialize a normal git repo in the my_index directory.