t9141: use test_path_is_missing()
The test_must_fail() function should only be used for git commands since we assume that external commands work sanely. Since, not only should these directories not exist, but there shouldn't exist _any_ filesystem entity in these paths, replace `test_must_fail test -d` with `test_path_is_missing`. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Denton Liu committed
Apr 20, 2020 at 04:54 UTC
5935ae3ee9da3a49a98c42837d7846abea407e23
1 file changed
+4
-4
t/t9141-git-svn-multiple-branches.sh
+4
-4
@@ -90,10 +90,10 @@ test_expect_success 'Multiple branch or tag paths require -d' '
90
) &&
91
( cd svn_project &&
92
svn_cmd up &&
93
- test_must_fail test -d b_one/Nope &&
94
- test_must_fail test -d b_two/Nope &&
95
- test_must_fail test -d tags_A/Tagless &&
96
- test_must_fail test -d tags_B/Tagless
93
+ test_path_is_missing b_one/Nope &&
94
+ test_path_is_missing b_two/Nope &&
95
+ test_path_is_missing tags_A/Tagless &&
96
+ test_path_is_missing tags_B/Tagless
97
)
98
'
99