Commit 4316bf37 authored by Bjorn Munch's avatar Bjorn Munch

Bug #52321 mtr test suite paths need to be updated

Use $suitedir instead of $basedir to find suites
Add 'testdir' to ConfigFactory
parent f9fa3b7a
......@@ -30,6 +30,13 @@ sub get_basedir {
return $basedir;
}
sub get_testdir {
my ($self, $group)= @_;
my $testdir= $group->if_exist('testdir') ||
$self->{ARGS}->{testdir};
return $testdir;
}
sub fix_charset_dir {
my ($self, $config, $group_name, $group)= @_;
......@@ -142,8 +149,8 @@ sub fix_secure_file_priv {
sub fix_std_data {
my ($self, $config, $group_name, $group)= @_;
my $basedir= $self->get_basedir($group);
return "$basedir/mysql-test/std_data";
my $testdir= $self->get_testdir($group);
return "$testdir/std_data";
}
sub ssl_supported {
......
......@@ -266,11 +266,11 @@ sub collect_one_suite($)
}
else
{
$suitedir= my_find_dir($::basedir,
["mysql-test/suite",
"mysql-test",
$suitedir= my_find_dir($suitedir,
["suite",
".",
# Look in storage engine specific suite dirs
"storage/*/mysql-test-suites"
"../storage/*/mysql-test-suites"
],
[$suite]);
}
......
......@@ -2742,6 +2742,7 @@ sub default_mysqld {
my $config= My::ConfigFactory->new_config
( {
basedir => $basedir,
testdir => $glob_mysql_test_dir,
template_path => "include/default_my.cnf",
vardir => $opt_vardir,
tmpdir => $opt_tmpdir,
......@@ -3350,6 +3351,7 @@ sub run_testcase ($) {
$config= My::ConfigFactory->new_config
( {
basedir => $basedir,
testdir => $glob_mysql_test_dir,
template_path => $tinfo->{template_path},
extra_template_path => $tinfo->{extra_template_path},
vardir => $opt_vardir,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment