Skip to content

Commit 861dbb1

Browse files
deveshidwivedigitster
authored andcommitted
t5403: use test_path_is_file instead of test -f
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 54a3711 commit 861dbb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5403-post-checkout-hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ test_expect_success 'post-checkout hook is triggered by clone' '
110110
echo "$@" >"$GIT_DIR/post-checkout.args"
111111
EOF
112112
git clone --template=templates . clone3 &&
113-
test -f clone3/.git/post-checkout.args
113+
test_path_is_file clone3/.git/post-checkout.args
114114
'
115115

116116
test_done

0 commit comments

Comments
 (0)