]> git.ipfire.org Git - thirdparty/git.git/commit
t7601: use "test_path_is_file" etc. instead of "test -f"
authorDorcas AnonoLitunya <anonolitunya@gmail.com>
Wed, 18 Oct 2023 12:45:12 +0000 (15:45 +0300)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Oct 2023 23:57:49 +0000 (16:57 -0700)
commit5abb758118ebbc85fce114176722670c858f4b62
tree71251d56573e388e48b2576e79653f1609ea18a0
parent813d9a91884e0afecec8ccf8e33909c405ee1d3f
t7601: use "test_path_is_file" etc. instead of "test -f"

Some tests in t7601 use "test -f" and "test ! -f" to see if a path
exists or is missing.

Use test_path_is_file and test_path_is_missing helper functions to
clarify these tests a bit better. This especially matters for the
"missing" case because "test ! -f F" will be happy if "F" exists as a
directory, but the intent of the test is that "F" should not exist, even
as a directory. The updated code expresses this better.

Signed-off-by: Dorcas AnonoLitunya <anonolitunya@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7601-merge-pull-config.sh