diff options
| author | Aditya <adityabnw07@gmail.com> | 2026-03-18 20:07:35 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-18 13:13:08 -0700 |
| commit | 638c7bfbbed1d003abdcdce7c51032c772f3303f (patch) | |
| tree | dd1d7cb6e2cd92498e9c14b3adf0db161bc59e4e /t | |
| parent | ca1db8a0f7dc0dbea892e99f5b37c5fe5861be71 (diff) | |
| download | git-638c7bfbbed1d003abdcdce7c51032c772f3303f.tar.xz | |
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>
Diffstat (limited to 't')
| -rwxr-xr-x | t/t2107-update-index-basic.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) ' |
