public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH] [GSoC] t5403: use test_path_is_file instead of test -f
@ 2025-12-29 18:57 Deveshi Dwivedi
  2026-01-01  0:27 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Deveshi Dwivedi @ 2025-12-29 18:57 UTC (permalink / raw)
  To: git; +Cc: Deveshi Dwivedi

Replace 'test -f' with the test_path_is_file in
t5403-post-checkout-hook.sh. This helper provides better error
messages when tests fail, making it easier to debug issues.

Signed-off-by: Deveshi Dwivedi <deveshigurgaon@gmail•com>
---
 t/t5403-post-checkout-hook.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/t5403-post-checkout-hook.sh b/t/t5403-post-checkout-hook.sh
index 978f240cda..1462e3365b 100755
--- a/t/t5403-post-checkout-hook.sh
+++ b/t/t5403-post-checkout-hook.sh
@@ -109,7 +109,7 @@ test_expect_success 'post-checkout hook is triggered by clone' '
 	echo "$@" >"$GIT_DIR/post-checkout.args"
 	EOF
 	git clone --template=templates . clone3 &&
-	test -f clone3/.git/post-checkout.args
+	test_path_is_file clone3/.git/post-checkout.args
 '
 
 test_done
-- 
2.52.0.230.gd8af7cadaa


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-05 11:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-29 18:57 [PATCH] [GSoC] t5403: use test_path_is_file instead of test -f Deveshi Dwivedi
2026-01-01  0:27 ` Junio C Hamano
2026-01-05  5:58   ` Deveshi Dwivedi
2026-01-05 10:34     ` Junio C Hamano
2026-01-05 11:47       ` Deveshi Dwivedi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox