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>
Ashwani Kumar Kamal committed
Feb 12, 2026 at 11:15 UTC
580d86576a349f9a64652bb0707984d7fb5d6e54
1 file changed
+4
-4
t/t9812-git-p4-wildcards.sh
+4
-4
@@ -30,13 +30,13 @@ test_expect_success 'wildcard files git p4 clone' '
30
test_when_finished cleanup_git &&
31
(
32
cd "$git" &&
33
- test -f file-wild#hash &&
33
+ test_path_is_file file-wild#hash &&
34
if test_have_prereq !MINGW,!CYGWIN
35
then
36
- test -f file-wild\*star
36
+ test_path_is_file file-wild\*star
37
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
40
)
41
'
42