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>
This commit is contained in:
Brian Gernhardt
2010-03-20 04:29:11 -04:00
committed by Junio C Hamano
parent a673cfede6
commit 4a45f7dd49
5 changed files with 64 additions and 55 deletions

View File

@@ -15,9 +15,10 @@ code and message.'
# ----------------------------------------------------------------------
# snapshot settings
test_commit \
'SnapshotTests' \
'i can has snapshot?'
test_expect_success 'setup' "
test_commit 'SnapshotTests' 'i can has snapshot?'
"
cat >>gitweb_config.perl <<\EOF
$feature{'snapshot'}{'override'} = 0;