Changeset 479

Show
Ignore:
Timestamp:
11/08/08 23:12:32 (3 years ago)
Author:
dom
Message:

t/400_upgrade.t: skip all tests correctly if no backends configured (fixes #44)

Location:
wiki-toolkit/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/Changes

    r478 r479  
    88        Don't write out a new version of a node if the checksum is the 
    99        same as the one already stored (#43) 
     10        t/400_upgrade.t: skip all tests correctly if no backends 
     11        configured (#44) 
    1012 
    11130.76    13 July 2008 
  • wiki-toolkit/trunk/t/400_upgrade.t

    r451 r479  
    5252 
    5353my $num_tests = (scalar @schemas_to_test * scalar @configured_databases * 2) + $num_mysql_only_tests; 
    54 plan tests => $num_tests; 
     54if ( $num_tests == 0 ) { 
     55    plan skip_all => "no backends configured"; 
     56} else { 
     57    plan tests => $num_tests; 
     58} 
    5559 
    5660foreach my $database (@configured_databases) {