t9812: modernize test path helpers

Replace assertion-style 'test -f' checks with Git's
test_path_is_file() helper for clearer failures and
consistency.

Signed-off-by: Ashwani Kumar Kamal <ashwanikamal.im421@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Ashwani Kumar Kamal 2026-02-12 11:15:30 +05:30 committed by Junio C Hamano
parent 453e7b744a
commit 580d86576a
1 changed files with 4 additions and 4 deletions

View File

@ -30,13 +30,13 @@ test_expect_success 'wildcard files git p4 clone' '
test_when_finished cleanup_git &&
(
cd "$git" &&
test -f file-wild#hash &&
test_path_is_file file-wild#hash &&
if test_have_prereq !MINGW,!CYGWIN
then
test -f file-wild\*star
test_path_is_file file-wild\*star
fi &&
test -f file-wild@at &&
test -f file-wild%percent
test_path_is_file file-wild@at &&
test_path_is_file file-wild%percent
)
'