diff options
Diffstat (limited to 't/t3020-ls-files-error-unmatch.sh')
-rwxr-xr-x | t/t3020-ls-files-error-unmatch.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/t/t3020-ls-files-error-unmatch.sh b/t/t3020-ls-files-error-unmatch.sh index f4da869932..ca01053bcc 100755 --- a/t/t3020-ls-files-error-unmatch.sh +++ b/t/t3020-ls-files-error-unmatch.sh @@ -11,17 +11,18 @@ line. ' . ./test-lib.sh -touch foo bar -git update-index --add foo bar -git-commit -m "add foo bar" +test_expect_success 'setup' ' + touch foo bar && + git update-index --add foo bar && + git commit -m "add foo bar" +' test_expect_success \ 'git ls-files --error-unmatch should fail with unmatched path.' \ - '! git ls-files --error-unmatch foo bar-does-not-match' + 'test_must_fail git ls-files --error-unmatch foo bar-does-not-match' test_expect_success \ 'git ls-files --error-unmatch should succeed eith matched paths.' \ 'git ls-files --error-unmatch foo bar' test_done -1 |