git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[GSOC PATCH] t9812: modernize test path helpers

From
AKAshwani Kumar Kamal <ashwanikamal.im421@gmail.com>
Date
Feb 12, 2026, 05:45 UTC
Message-ID
<20260212054530.4763-1-ashwanikamal.im421@gmail.com>

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>
---
 t/t9812-git-p4-wildcards.sh | 8 ++++----
 1 file 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
 	)
 '
 
-- 
2.39.5
Message 1 of 1 in “t9812: modernize test path helpers”
  1. t9812: modernize test path helpersAshwani Kumar Kamal, Feb 12, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.