mirror of
https://github.com/git/git.git
synced 2026-01-11 05:13:13 +09:00
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 <deveshigurgaon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
54a3711a9d
commit
861dbb1586
@ -110,7 +110,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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user