Files
systemd/test/fuzz
Daan De Meyer 1806aaafc8 test: list test data with git in git worktrees too
The dmidecode and fuzz tests are registered from the output of git ls-files
when .git is a directory. In a git worktree, .git is a file that points to the
repository, so we fall back to a shell glob. The glob also matches untracked
files. A worktree then registers tests that the main checkout doesn't.

Let's check whether .git exists instead, like the TIME_EPOCH check does. git
reads the repository through the .git file that we pass to --git-dir. git
ls-files fails when the repository isn't reachable, for example in a container
that only mounts the worktree. When git ls-files fails, we fall back to the
shell glob as well, instead of failing the setup.

(cherry picked from commit 8f2a8cc082)
(cherry picked from commit 2f6fa00012)
2026-11-05 13:58:25 +00:00
..
2024-10-21 09:10:20 -07:00