]> git.ipfire.org Git - thirdparty/git.git/commit
t0008: improve test cleanup to fix failing test
authorMirko Faina <mroik@delayed.space>
Mon, 16 Mar 2026 01:15:42 +0000 (02:15 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2026 19:43:37 +0000 (12:43 -0700)
commit48430e44ace97055567294d412dde9bb8adc0fbb
tree82a1e346da2ef0f443e367bc8c768cc7e6a22f7f
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed
t0008: improve test cleanup to fix failing test

The "large exclude file ignored in tree" test fails. This is due to an
additional warning message that is generated in the test. "warning:
unable to access 'subdir/.gitignore': Too many levels of symbolic
links", the extra warning that is not supposed to be there, happens
because of some leftover files left by previous tests.

To fix this we improve cleanup on "symlinks not respected in-tree", and
because the tests in t0008 in general have poor cleanup, at the start of
"large exclude file ignored in tree" we search for any leftover
.gitignore and remove them before starting the test.

Improve post-test cleanup and add pre-test cleanup to make sure that we
have a workable environment for the test.

Signed-off-by: Mirko Faina <mroik@delayed.space>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0008-ignores.sh