summaryrefslogtreecommitdiff
path: root/t/t3020-ls-files-error-unmatch.sh
diff options
context:
space:
mode:
authorBrian Gernhardt <brian@gernhardtsoftware.com>2010-03-20 08:29:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-03-20 16:15:17 (GMT)
commit4a45f7dd49ba9a8943ad9b11fb7bed04f0cb4f15 (patch)
tree5e82ea57ee14ac7fadbd84d1543896b3e581c85c /t/t3020-ls-files-error-unmatch.sh
parenta673cfede6987ee815de9189eab054fc462e5c9f (diff)
downloadgit-4a45f7dd49ba9a8943ad9b11fb7bed04f0cb4f15.zip
git-4a45f7dd49ba9a8943ad9b11fb7bed04f0cb4f15.tar.gz
git-4a45f7dd49ba9a8943ad9b11fb7bed04f0cb4f15.tar.bz2
Use test_expect_success for test setups
Several tests did not use test_expect_success for their setup commands. Putting these start commands into the testing framework means both that errors during setup will be caught quickly and that non-error text will be suppressed without -v. Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3020-ls-files-error-unmatch.sh')
-rwxr-xr-xt/t3020-ls-files-error-unmatch.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/t/t3020-ls-files-error-unmatch.sh b/t/t3020-ls-files-error-unmatch.sh
index f4066cb..a7d8187 100755
--- a/t/t3020-ls-files-error-unmatch.sh
+++ b/t/t3020-ls-files-error-unmatch.sh
@@ -11,9 +11,11 @@ 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.' \