t7301: use test_path_is_(missing|file)
commit9a90118d788a38b051f6bcad92310978f065eeee
authorVincenzo Mezzela <vincenzo.mezzela@gmail.com>
Mon, 4 Mar 2024 17:17:32 +0000 (4 18:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Mar 2024 23:32:12 +0000 (6 15:32 -0800)
treeaeeb6bd2bd8b8e6bf27a5c2ae336c41bcd921068
parentb387623c12f3f4a376e4d35a610fd3e55d7ea907
t7301: use test_path_is_(missing|file)

Replace "test -f" and friends to use the test_path_is_file helper
function and friends from test-lib-functions.sh. These functions
perform identical operations while enhancing debugging capabilities
in case of test failures.

The original used 'test ! -f' to check if the file has been
correctly cleaned, so 'test ! -e' would have been a better choice.
Replace them with 'test_path_is_missing'.

Signed-off-by: Vincenzo Mezzela <vincenzo.mezzela@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7301-clean-interactive.sh