aboutsummaryrefslogtreecommitdiff
path: root/t/t3800-mktag.sh
diff options
context:
space:
mode:
authorBrian Gernhardt <brian@gernhardtsoftware.com>2010-03-20 04:29:11 -0400
committerJunio C Hamano <gitster@pobox.com>2010-03-20 09:15:17 -0700
commit4a45f7dd49ba9a8943ad9b11fb7bed04f0cb4f15 (patch)
tree5e82ea57ee14ac7fadbd84d1543896b3e581c85c /t/t3800-mktag.sh
parenta673cfede6987ee815de9189eab054fc462e5c9f (diff)
downloadgit-4a45f7dd49ba9a8943ad9b11fb7bed04f0cb4f15.tar.gz
git-4a45f7dd49ba9a8943ad9b11fb7bed04f0cb4f15.tar.xz
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/t3800-mktag.sh')
-rwxr-xr-xt/t3800-mktag.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/t/t3800-mktag.sh b/t/t3800-mktag.sh
index 6fb027ba5..8eb47942e 100755
--- a/t/t3800-mktag.sh
+++ b/t/t3800-mktag.sh
@@ -22,10 +22,12 @@ check_verify_failure () {
###########################################################
# first create a commit, so we have a valid object/type
# for the tag.
-echo Hello >A
-git update-index --add A
-git commit -m "Initial commit"
-head=$(git rev-parse --verify HEAD)
+test_expect_success 'setup' '
+ echo Hello >A &&
+ git update-index --add A &&
+ git commit -m "Initial commit" &&
+ head=$(git rev-parse --verify HEAD)
+'
############################################################
# 1. length check