From: Aditya Date: Wed, 18 Mar 2026 20:07:35 +0000 (+0000) Subject: t2107: modernize path existence check X-Git-Tag: v2.54.0-rc0~12^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=638c7bfbbed1d003abdcdce7c51032c772f3303f;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t2107-update-index-basic.sh b/t/t2107-update-index-basic.sh index cc72ead79f..3bffe5da8a 100755 --- a/t/t2107-update-index-basic.sh +++ b/t/t2107-update-index-basic.sh @@ -86,7 +86,7 @@ test_expect_success '.lock files cleaned up' ' # the_index.cache_changed is zero, rollback_lock_file fails git update-index --refresh --verbose >out && test_must_be_empty out && - ! test -f .git/index.lock + test_path_is_missing .git/index.lock ) '