]> git.99rst.org Git - git.git/commit
t9811: replace 'test -f' and '! test -f' with 'test_path_*'
authorMarcelo Machado Lage <redacted>
Sat, 11 Jul 2026 16:04:47 +0000 (13:04 -0300)
committerJunio C Hamano <redacted>
Sat, 11 Jul 2026 21:14:35 +0000 (14:14 -0700)
commit156991928c3def5df519d42efc46735b0a090079
treea433983b21c9e935f7b52a240f83d33229dae616
parentdbe8efd6632d250b1d2638013b70f08bbc587ad6
t9811: replace 'test -f' and '! test -f' with 'test_path_*'

Replace the basic shell commands 'test -f', with more modern test
helpers 'test_path_is_file' and 'test_path_is_missing'.
These modern helpers emit useful information when the corresponding
tests fail, unlike 'test -f' and '! test -f'.

The occurrences of '! test -f filename' were replaced by
'file_path_is_missing filename', a stronger guarantee equivalent to
'! test -e filename'.

Co-authored-by: Vinicius Lira de Freitas <redacted>
Signed-off-by: Vinicius Lira de Freitas <redacted>
Signed-off-by: Marcelo Machado Lage <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t9811-git-p4-label-import.sh
git clone https://git.99rst.org/PROJECT