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

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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) {