diff options
author | unknown <msvensson@shellback.(none)> | 2006-03-07 20:45:44 +0100 |
---|---|---|
committer | unknown <msvensson@shellback.(none)> | 2006-03-07 20:45:44 +0100 |
commit | f11bb1de2af64a4cdafffd0389ef303ffe7fe8df (patch) | |
tree | 533c05ad1b440c95dc2ceb61a1b0dab06ab446b2 /mysql-test/lib | |
parent | c0711619ad7eceaeacc4b5044db980f3475a6530 (diff) | |
parent | f0f8f114f54cc542b51bfd8ac6368e835117ea54 (diff) | |
download | mariadb-git-f11bb1de2af64a4cdafffd0389ef303ffe7fe8df.tar.gz |
Merge bk-internal:/home/bk/mysql-5.1-new
into shellback.(none):/home/msvensson/mysql/bug17574/my51-bug17574
mysql-test/mysql-test-run.pl:
Auto merged
Diffstat (limited to 'mysql-test/lib')
-rw-r--r-- | mysql-test/lib/mtr_cases.pl | 16 | ||||
-rw-r--r-- | mysql-test/lib/mtr_report.pl | 5 |
2 files changed, 17 insertions, 4 deletions
diff --git a/mysql-test/lib/mtr_cases.pl b/mysql-test/lib/mtr_cases.pl index d6068c9691a..3978700c3e8 100644 --- a/mysql-test/lib/mtr_cases.pl +++ b/mysql-test/lib/mtr_cases.pl @@ -252,19 +252,27 @@ sub collect_one_test_case($$$$$$$) { $tinfo->{'slave_restart'}= 1; } - if ( ( $::opt_with_ndbcluster or $::glob_use_running_ndbcluster ) and - ( $::opt_with_ndbcluster_all or defined mtr_match_substring($tname,"ndb") )) + if ( $::opt_with_ndbcluster_all or defined mtr_match_substring($tname,"ndb") ) { + # This is an ndb test or all tests should be run with ndb cluster started $tinfo->{'ndb_test'}= 1; + if ( $::opt_skip_ndbcluster ) + { + # All ndb test's should be skipped + $tinfo->{'skip'}= 1; + return; + } } else { + # This is not a ndb test + $tinfo->{'ndb_test'}= 0; if ( $::opt_with_ndbcluster_only ) - { + { + # Only the ndb test should be run, all other should be skipped $tinfo->{'skip'}= 1; return; } - $tinfo->{'ndb_test'}= 0; } # FIXME what about embedded_server + ndbcluster, skip ?! diff --git a/mysql-test/lib/mtr_report.pl b/mysql-test/lib/mtr_report.pl index 88ddbf63d0f..92ce7437365 100644 --- a/mysql-test/lib/mtr_report.pl +++ b/mysql-test/lib/mtr_report.pl @@ -114,6 +114,11 @@ sub mtr_report_test_failed ($) { { print "[ fail ] timeout\n"; } + elsif ( $tinfo->{'ndb_test'} and !$::flag_ndb_status_ok) + { + print "[ fail ] ndbcluster start failure\n"; + return; + } else { print "[ fail ]\n"; |