mirror of
https://github.com/git/git.git
synced 2026-05-02 12:26:02 +02:00
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>
This commit is contained in:
@@ -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
|
||||
)
|
||||
'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user