@matheusbsbs / matheus-bagliano / commits / b8afb908c2
Fork 0

t/lib-git-p4: use test_path_is_missing()

Previously, cleanup_git() would use `test_must_fail test -d` to ensure that the directory is removed. However, test_must_fail should only be used for git commands. Use test_path_is_missing() instead to check that the directory has been removed. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Denton Liu committed Dec 20, 2019 at 10:15 UTC b8afb908c261752310d4792f901c68fe27b77b40
1 file changed +1 -1
t/lib-git-p4.sh
+1 -1
@@ -175,7 +175,7 @@ stop_and_cleanup_p4d () {
175
176 cleanup_git () {
177 retry_until_success rm -r "$git"
178 - test_must_fail test -d "$git" &&
178 + test_path_is_missing "$git" &&
179 retry_until_success mkdir "$git"
180 }
181