List:Commits« Previous MessageNext Message »
From:Magnus Svensson Date:July 23 2008 3:24pm
Subject:bzr commit into mysql-6.0-backup branch (msvensson:2684)
View as plain text  
#At file:///data/msvensson/mysql/6.0-rpl/

 2684 Magnus Svensson	2008-07-23
      Check if the MySQL Server suppoerts maria and only look for the maria 
      specific tools in that case
modified:
  mysql-test/mysql-test-run.pl

=== modified file 'mysql-test/mysql-test-run.pl'
--- a/mysql-test/mysql-test-run.pl	2008-07-22 14:16:22 +0000
+++ b/mysql-test/mysql-test-run.pl	2008-07-23 13:23:07 +0000
@@ -1072,6 +1072,12 @@ sub tool_arguments ($$) {
 }
 
 
+sub have_maria_support () {
+  my $maria_var= %mysqld_variables->{'maria'};
+  return defined $maria_var and $maria_var eq 'TRUE';
+}
+
+
 #
 # Set environment to be used by childs of this process for
 # things that are constant during the whole lifetime of mysql-test-run
@@ -1280,15 +1286,21 @@ sub environment_setup {
 
 
   # ----------------------------------------------------
-  # myisam and maria tools
+  # myisam tools
   # ----------------------------------------------------
   $ENV{'MYISAMLOG'}= tool_arguments("storage/myisam", "myisamlog", );
   $ENV{'MYISAMCHK'}= tool_arguments("storage/myisam", "myisamchk");
   $ENV{'MYISAMPACK'}= tool_arguments("storage/myisam", "myisampack");
   $ENV{'MYISAM_FTDUMP'}= tool_arguments("storage/myisam", "myisam_ftdump");
 
-  $ENV{'MARIA_CHK'}= tool_arguments("storage/maria", "maria_chk");
-  $ENV{'MARIA_PACK'}= tool_arguments("storage/maria", "maria_pack");
+  # ----------------------------------------------------
+  # maria tools
+  # ----------------------------------------------------
+  if (have_maria_support())
+  {
+    $ENV{'MARIA_CHK'}= tool_arguments("storage/maria", "maria_chk");
+    $ENV{'MARIA_PACK'}= tool_arguments("storage/maria", "maria_pack");
+  }
 
   # ----------------------------------------------------
   # perror

Thread
bzr commit into mysql-6.0-backup branch (msvensson:2684) Magnus Svensson23 Jul