{"thread":{"id":"64984","subject":"[GSOC PATCH] t9812: modernize test path helpers","startedAt":"2026-02-12T05:45:38Z","lastAt":"2026-02-12T05:45:38Z","messageCount":1,"participants":["Ashwani Kumar Kamal"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"535821","messageId":"20260212054530.4763-1-ashwanikamal.im421@gmail.com","threadId":"64984","inReplyTo":null,"subject":"[GSOC PATCH] t9812: modernize test path helpers","fromName":"Ashwani Kumar Kamal","fromEmail":"ashwanikamal.im421@gmail.com","sentAt":"2026-02-12T05:45:30Z","receivedAt":"2026-02-12T05:45:38Z","isPatch":true,"sender":{"key":"ashwanikamal.im421@gmail.com","avatar":null},"body":"Replace assertion-style 'test -f' checks with Git's\ntest_path_is_file() helper for clearer failures and\nconsistency.\n\nSigned-off-by: Ashwani Kumar Kamal <ashwanikamal.im421@gmail.com>\n---\n t/t9812-git-p4-wildcards.sh | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/t/t9812-git-p4-wildcards.sh b/t/t9812-git-p4-wildcards.sh\nindex 254a7c2446..e91004ee79 100755\n--- a/t/t9812-git-p4-wildcards.sh\n+++ b/t/t9812-git-p4-wildcards.sh\n@@ -30,13 +30,13 @@ test_expect_success 'wildcard files git p4 clone' '\n \ttest_when_finished cleanup_git &&\n \t(\n \t\tcd \"$git\" &&\n-\t\ttest -f file-wild#hash &&\n+\t\ttest_path_is_file file-wild#hash &&\n \t\tif test_have_prereq !MINGW,!CYGWIN\n \t\tthen\n-\t\t\ttest -f file-wild\\*star\n+\t\t\ttest_path_is_file file-wild\\*star\n \t\tfi &&\n-\t\ttest -f file-wild@at &&\n-\t\ttest -f file-wild%percent\n+\t\ttest_path_is_file file-wild@at &&\n+\t\ttest_path_is_file file-wild%percent\n \t)\n '\n \n-- \n2.39.5\n\n"}]}