Skip to content

Commit fb5e858

Browse files
committed
Merge branch 'sy/t0001-use-path-is-helper'
Test modernization. * sy/t0001-use-path-is-helper: t0001: replace "test [-d|-f]" with test_path_is_* functions
2 parents c69e455 + d4fe066 commit fb5e858

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)