aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshwani Kumar Kamal <ashwanikamal.im421@gmail.com>2026-02-12 11:15:30 +0530
committerJunio C Hamano <gitster@pobox.com>2026-02-12 11:08:29 -0800
commit580d86576a349f9a64652bb0707984d7fb5d6e54 (patch)
tree9a80d839933d779be44a01964ac54341d2e12c6e
parent453e7b744aef0d9dab62dac6ab030bb643a2e117 (diff)
downloadgit-580d86576a349f9a64652bb0707984d7fb5d6e54.tar.xz
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>
-rwxr-xr-xt/t9812-git-p4-wildcards.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t9812-git-p4-wildcards.sh b/t/t9812-git-p4-wildcards.sh
index 254a7c2446..e91004ee79 100755
--- a/t/t9812-git-p4-wildcards.sh
+++ b/t/t9812-git-p4-wildcards.sh
@@ -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
)
'