]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5601-clone.sh
t5601: rm the target file of cp that could still be executing
authorJunio C Hamano <gitster@pobox.com>
Tue, 17 Oct 2017 05:04:43 +0000 (14:04 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Oct 2017 05:04:43 +0000 (14:04 +0900)
commitcff48ccf2a4fefab6f87b1b6ec9ec63595d88175
treef457e38be0a78d935b9d4dcb8e0f2ef2c32084f0
parent2ac9cf7aff5130bdfb314cbbd422a35d2d03cf18
t5601: rm the target file of cp that could still be executing

"while sh t5601-clone.sh; do :; done" seems to fail sporadically at
around test #45 where fake-ssh wrapper is copied create plink.exe,
with an error message that says the "text is busy".

I have a mild suspicion that the root cause of the bug is that the
fake SSH process from the previous test is still running by the time
the next test wants to replace it with a new binary, but in the
meantime, removing the target that could still be executing before
copying something else over seems to work it around.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5601-clone.sh