t2107: modernize path existence check

Replace '! test -f' with 'test_path_is_missing' to get better debugging information by reporting loudly what expectation was not met when the assertion fails. Signed-off-by: Aditya <adityabnw07@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Aditya committed Mar 18, 2026 at 20:07 UTC 638c7bfbbed1d003abdcdce7c51032c772f3303f
1 file changed +1 -1
t/t2107-update-index-basic.sh
+1 -1
@@ -86,7 +86,7 @@ test_expect_success '.lock files cleaned up' '
86 # the_index.cache_changed is zero, rollback_lock_file fails
87 git update-index --refresh --verbose >out &&
88 test_must_be_empty out &&
89 - ! test -f .git/index.lock
89 + test_path_is_missing .git/index.lock
90 )
91 '
92