]> git.ipfire.org Git - thirdparty/git.git/commit - t/test-lib-functions.sh
t7406: prefer test_* helper functions to test -[feds]
authorElijah Newren <newren@gmail.com>
Wed, 8 Aug 2018 16:31:06 +0000 (09:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Aug 2018 17:52:55 +0000 (10:52 -0700)
commit7e9055bb0062fa7163b55b56fdc7532a04685862
treebcbc5c006de357fb5ea26be1665d04493d54869e
parent65799fbca72a251c75b087e7d018f367a4f7794f
t7406: prefer test_* helper functions to test -[feds]

test -e, test -s, etc. do not provide nice error messages when we hit
test failures, so use the test_* helper functions from
test-lib-functions.sh.

Also, add test_path_exists() to test-lib-function.sh while at it, so
that we don't need to worry whether submodule/.git is a file or a
directory.  It currently is a file with contents of the form
   gitdir: ../.git/modules/submodule
but it could be changed in the future to be a directory; this test
only really cares that it exists.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7406-submodule-update.sh
t/test-lib-functions.sh