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:
committed by
Junio C Hamano
parent
a673cfede6
commit
4a45f7dd49
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user