Skip to content

Commit 1db985f

Browse files
a25781623-langQuantumDev-CERN
authored andcommitted
t2107: modernize path existence check
Replace '! test -f' with 'test_path_is_missing' for better debugging information when the assertion fails. Found using: git grep "test -[efd]" t/t????-*.sh Signed-off-by: aditya <adityabnw07@gmail.com>
1 parent ca1db8a commit 1db985f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t2107-update-index-basic.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ test_expect_success '.lock files cleaned up' '
8686
# the_index.cache_changed is zero, rollback_lock_file fails
8787
git update-index --refresh --verbose >out &&
8888
test_must_be_empty out &&
89-
! test -f .git/index.lock
89+
test_path_is_missing .git/index.lock
9090
)
9191
'
9292

0 commit comments

Comments
 (0)