[PATCH v2 28/28] t/perf: avoid copying builtin fsmonitor files into test repo
- From
- Jeff Hostetler via GitGitGadget <gitgitgadget@gmail.com>
- Date
- May 22, 2021, 13:57 UTC
- Message-ID
- <96a3eab819f455e56643158cd135f03530b66be5.1621691828.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.923.v2.git.1621691828.gitgitgadget@gmail.com>
From: Jeff Hostetler <jeffhost@microsoft.com>
Do not try to copy a fsmonitor--daemon socket from the current development directory into the test trash directory.
When we run the perf suite without an explicit source repo set, we copy of the current $GIT_DIR into the test trash directory. Unix domain sockets cannot be copied in that manner, so the test setup fails.
Additionally, omit any other fsmonitor--daemon temp files inside the $GIT_DIR directory.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> --- t/perf/perf-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/perf/perf-lib.sh b/t/perf/perf-lib.sh index 601d9f67ddb0..3b97e3fc0f27 100644 --- a/t/perf/perf-lib.sh +++ b/t/perf/perf-lib.sh @@ -74,7 +74,7 @@ test_perf_copy_repo_contents () { for stuff in "$1"/* do case "$stuff" in - */objects|*/hooks|*/config|*/commondir|*/gitdir|*/worktrees) + */objects|*/hooks|*/config|*/commondir|*/gitdir|*/worktrees|*/fsmonitor--daemon*) ;; *) cp -R "$stuff" "$repo/.git/" || exit 1
-- gitgitgadget