Skip to content

Commit d4fe066

Browse files
ffyuandagitster
authored andcommitted
t0001: replace "test [-d|-f]" with test_path_is_* functions
Signed-off-by: Shaoxuan Yuan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4c53a8c commit d4fe066

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t0001-init.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ TEST_PASSES_SANITIZE_LEAK=true
66
. ./test-lib.sh
77

88
check_config () {
9-
if test -d "$1" && test -f "$1/config" && test -d "$1/refs"
9+
if test_path_is_dir "$1" &&
10+
test_path_is_file "$1/config" && test_path_is_dir "$1/refs"
1011
then
1112
: happy
1213
else

0 commit comments

Comments
 (0)