From: Shaoxuan Yuan Date: Fri, 21 Jan 2022 10:21:09 +0000 (+0800) Subject: t0001: replace "test [-d|-f]" with test_path_is_* functions X-Git-Url: https://www.git.kevux.org/?a=commitdiff_plain;h=d4fe066e4ba577afe585a640e245ce12331f6286;p=rit t0001: replace "test [-d|-f]" with test_path_is_* functions Signed-off-by: Shaoxuan Yuan Signed-off-by: Junio C Hamano --- diff --git a/t/t0001-init.sh b/t/t0001-init.sh index 3235ab4d53..d479303efa 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