From f1035e0cd0c888bc7aa18fc6e5d92c93e9e96a83 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sat, 23 Dec 2023 23:26:17 -0500 Subject: run_project_tests: fix assertion that crashes if you have git worktrees git worktrees are frequently a handy tool to use. This glob pattern asserts an error if the same named directory appears more than once, which it will -- once per worktree -- but only because it is globbing the entire project root, even though it should always only exclusively care about files in `test cases/`. So just glob correctly, and then I can run the testsuite locally again. --- run_project_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_project_tests.py b/run_project_tests.py index c9d8fec00..4458fce76 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -1550,7 +1550,7 @@ def print_tool_versions() -> None: print('{0:<{2}}: {1}'.format(tool.tool, get_version(tool), max_width)) print() -tmpdir = list(Path('.').glob('**/*install functions and follow symlinks')) +tmpdir = list(Path('.').glob('test cases/**/*install functions and follow symlinks')) assert(len(tmpdir) == 1) symlink_test_dir = tmpdir[0] symlink_file1 = symlink_test_dir / 'foo/link1' -- cgit v1.2.3