Skip to contentSkip to conversation

t9812: modernize test path helpers

PATCH New Ashwani Kumar Kamal 1 participant 1 message Feb 12

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t9812: modernize test path helpers

Replace assertion-style 'test -f' checks with Git's test_path_is_file() helper for clearer failures and consistency.

---
 t/t9812-git-p4-wildcards.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
t/t9812-git-p4-wildcards.sh +4 -4
index 254a7c2446..e91004ee79 100755
@@ -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
 	)
 '
 
Signature · 1 line
2.39.5