Skip to content

Commit 580d865

Browse files
sneaky-potatogitster
authored andcommitted
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>
1 parent 453e7b7 commit 580d865

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

t/t9812-git-p4-wildcards.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ test_expect_success 'wildcard files git p4 clone' '
3030
test_when_finished cleanup_git &&
3131
(
3232
cd "$git" &&
33-
test -f file-wild#hash &&
33+
test_path_is_file file-wild#hash &&
3434
if test_have_prereq !MINGW,!CYGWIN
3535
then
36-
test -f file-wild\*star
36+
test_path_is_file file-wild\*star
3737
fi &&
38-
test -f file-wild@at &&
39-
test -f file-wild%percent
38+
test_path_is_file file-wild@at &&
39+
test_path_is_file file-wild%percent
4040
)
4141
'
4242

0 commit comments

Comments
 (0)