diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-02-23 16:58:03 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-02-23 16:58:03 -0800 |
| commit | fb5e8587a04e4fec4b05563f92c17b8068f9edbe (patch) | |
| tree | be5025e625947863231f9f7dc5233252346bf122 | |
| parent | Merge branch 'bs/forbid-i18n-of-protocol-token-in-fetch-pack' (diff) | |
| parent | t0001: replace "test [-d|-f]" with test_path_is_* functions (diff) | |
| download | git-fb5e8587a04e4fec4b05563f92c17b8068f9edbe.tar.gz git-fb5e8587a04e4fec4b05563f92c17b8068f9edbe.zip | |
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
| -rwxr-xr-x | t/t0001-init.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
