summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-12-23 23:26:17 -0500
committerDylan Baker <dylan@pnwbakers.com>2023-12-24 07:55:30 -0800
commitf1035e0cd0c888bc7aa18fc6e5d92c93e9e96a83 (patch)
tree35e7407e63aa552b52ed066da49421cbd429a728
parent7d652a6138c69e7af992c4108a9645c2b5c72317 (diff)
downloadmeson-f1035e0cd0c888bc7aa18fc6e5d92c93e9e96a83.tar.gz
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.
-rwxr-xr-xrun_project_tests.py2
1 files changed, 1 insertions, 1 deletions
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'