diff options
| author | Marcelo Machado Lage <marcelomlage@usp.br> | 2026-07-11 13:04:47 -0300 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-07-11 14:14:35 -0700 |
| commit | 156991928c3def5df519d42efc46735b0a090079 (patch) | |
| tree | a433983b21c9e935f7b52a240f83d33229dae616 /t/t4013/diff.diff_initial..side | |
| parent | dbe8efd6632d250b1d2638013b70f08bbc587ad6 (diff) | |
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 <vinilira@usp.br>
Signed-off-by: Vinicius Lira de Freitas <vinilira@usp.br>
Signed-off-by: Marcelo Machado Lage <marcelomlage@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
