t9801: replace test -f with test_path_is_file
authorShubham Verma <shubhunic@gmail.com>
Tue, 2 Mar 2021 18:50:56 +0000 (00:20 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Mar 2021 01:11:31 +0000 (17:11 -0800)
commit12604a8d0c0a7d706c7be7be607a584260042ca9
tree63389d4cec62011172937951f1a8837568b5218c
parent59ec22464f6c2b170b05f287e00740ea2288fe5c
t9801: replace test -f with test_path_is_file

Although `test -f` has the same functionality as test_path_is_file(), in
the case where test_path_is_file() fails, we get much better debugging
information.

Replace `test -f` with test_path_is_file so that future developers
will have a better experience debugging these test cases.

Signed-off-by: Shubham Verma <shubhunic@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9801-git-p4-branch.sh