List:Commits« Previous MessageNext Message »
From:Bjorn Munch Date:January 11 2011 2:16pm
Subject:bzr commit into mysql-5.5-mtr branch (bjorn.munch:3139) Bug#59216
View as plain text  
#At file:///home/bm136801/my/genplug-55/ based on revid:bjorn.munch@stripped

 3139 Bjorn Munch	2011-01-11
      Bug #59216 mysql test suite can not run indiviual tests in engines/funcs suite
      Test name spec would be cut at last /
      Only do this when .test file name given, not suite.<test>

    modified:
      mysql-test/lib/mtr_cases.pm
=== modified file 'mysql-test/lib/mtr_cases.pm'
--- a/mysql-test/lib/mtr_cases.pm	2010-12-29 15:28:19 +0000
+++ b/mysql-test/lib/mtr_cases.pm	2011-01-11 14:16:29 +0000
@@ -229,8 +229,11 @@ sub collect_test_cases ($$$$) {
 sub split_testname {
   my ($test_name)= @_;
 
-  # Get rid of directory part and split name on .'s
-  my @parts= split(/\./, basename($test_name));
+  # If .test file name is used, get rid of directory part
+  $test_name= basename($test_name) if $test_name =~ /\.test$/;
+
+  # Now split name on .'s
+  my @parts= split(/\./, $test_name);
 
   if (@parts == 1){
     # Only testname given, ex: alias


Attachment: [text/bzr-bundle] bzr/bjorn.munch@oracle.com-20110111141629-ryq38b0wm77ynye7.bundle
Thread
bzr commit into mysql-5.5-mtr branch (bjorn.munch:3139) Bug#59216Bjorn Munch11 Jan