Skip to content

Commit 5935ae3

Browse files
Denton-Lgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e8a5f07 commit 5935ae3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/t9141-git-svn-multiple-branches.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ test_expect_success 'Multiple branch or tag paths require -d' '
9090
) &&
9191
( cd svn_project &&
9292
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
9797
)
9898
'
9999

0 commit comments

Comments
 (0)