summaryrefslogtreecommitdiff
path: root/t/t0001-init.sh
diff options
context:
space:
mode:
authorShaoxuan Yuan <shaoxuan.yuan02@gmail.com>2022-01-21 10:21:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-02-12 00:38:53 (GMT)
commitd4fe066e4ba577afe585a640e245ce12331f6286 (patch)
tree27b78428ffbc43b32eebcd86c01be40473ce64f1 /t/t0001-init.sh
parent4c53a8c20f8984adb226293a3ffd7b88c3f4ac1a (diff)
downloadgit-d4fe066e4ba577afe585a640e245ce12331f6286.zip
git-d4fe066e4ba577afe585a640e245ce12331f6286.tar.gz
git-d4fe066e4ba577afe585a640e245ce12331f6286.tar.bz2
t0001: replace "test [-d|-f]" with test_path_is_* functions
Signed-off-by: Shaoxuan Yuan <shaoxuan.yuan02@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0001-init.sh')
-rwxr-xr-xt/t0001-init.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t0001-init.sh b/t/t0001-init.sh
index 3235ab4..d479303 100755
--- a/t/t0001-init.sh
+++ b/t/t0001-init.sh
@@ -6,7 +6,8 @@ TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
check_config () {
- if test -d "$1" && test -f "$1/config" && test -d "$1/refs"
+ if test_path_is_dir "$1" &&
+ test_path_is_file "$1/config" && test_path_is_dir "$1/refs"
then
: happy
else