===== mysql-test/mysql-test-run.pl 1.275 vs edited ===== --- 1.275/mysql-test/mysql-test-run.pl 2007-03-26 14:57:38 +02:00 +++ edited/mysql-test/mysql-test-run.pl 2007-03-22 16:49:18 +01:00 @@ -286,6 +286,7 @@ our $opt_skip_ndbcluster= 0; our $opt_skip_ndbcluster_slave= 0; +our $opt_use_ndbcluster= 0; our $opt_with_ndbcluster= 0; our $opt_with_ndbcluster_only= 0; our $glob_ndbcluster_supported= 0; @@ -434,7 +435,7 @@ } # Check if cluster can be skipped - if ( !$need_ndbcluster ) + if ( !$need_ndbcluster && !$opt_use_ndbcluster) { $opt_skip_ndbcluster= 1; $opt_skip_ndbcluster_slave= 1; @@ -521,6 +522,7 @@ 'bench' => \$opt_bench, 'small-bench' => \$opt_small_bench, 'with-ndbcluster' => \$opt_with_ndbcluster, + 'use-ndbcluster' => \$opt_use_ndbcluster, 'vs-config' => \$opt_vs_config, # Control what test suites or cases to run @@ -4379,7 +4381,7 @@ { if ( ! $opt_skip_ndbcluster and !$clusters->[0]->{'pid'} and - $tinfo->{'ndb_test'} ) + $tinfo->{'ndb_test'} || $opt_use_ndbcluster) { # Test need cluster, cluster is not started, start it ndbcluster_start($clusters->[0], "");