Skip to content

Commit 5c65897

Browse files
Denton-Lgitster
authored andcommitted
t9160: 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 this file not exist, but there shouldn't exit _any_ filesystem entity in these paths, replace `test_must_fail test -f` with `test_path_is_missing`. Signed-off-by: Denton Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5935ae3 commit 5c65897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t9160-git-svn-preserve-empty-dirs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ test_expect_success 'remove non-last entry from directory' '
8686
cd "$GIT_REPO" &&
8787
git checkout HEAD~2
8888
) &&
89-
test_must_fail test -f "$GIT_REPO"/2/.gitignore &&
90-
test_must_fail test -f "$GIT_REPO"/3/.gitignore
89+
test_path_is_missing "$GIT_REPO"/2/.gitignore &&
90+
test_path_is_missing "$GIT_REPO"/3/.gitignore
9191
'
9292

9393
# After re-cloning the repository with --placeholder-file specified, there

0 commit comments

Comments
 (0)