summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Goryavsky <julius.goryavsky@mariadb.com>2022-02-19 18:12:20 +0100
committerJulius Goryavsky <julius.goryavsky@mariadb.com>2022-02-21 16:44:55 +0100
commit4d33bfbfbda1e64ee2cb1cf827a86f379c8a81f0 (patch)
treeee367412a10fb2d17b34666694547629fb6a2b58
parent4110cb158e3abf438ebc0790212cb15210e1c99a (diff)
downloadmariadb-git-bb-10.2-MDEV-27602.tar.gz
Proposed mtr changesbb-10.2-MDEV-27602
-rwxr-xr-xmysql-test/mysql-test-run.pl37
1 files changed, 19 insertions, 18 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index bbe5df4c57a..3c6944f9778 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -2764,6 +2764,24 @@ sub mysql_server_start($) {
}
}
+ # Run <tname>-master.sh
+ if ($mysqld->option('#!run-master-sh') and
+ defined $tinfo->{master_sh} and
+ run_system('/bin/sh ' . $tinfo->{master_sh}) )
+ {
+ $tinfo->{'comment'}= "Failed to execute '$tinfo->{master_sh}'";
+ return 1;
+ }
+
+ # Run <tname>-slave.sh
+ if ($mysqld->option('#!run-slave-sh') and
+ defined $tinfo->{slave_sh} and
+ run_system('/bin/sh ' . $tinfo->{slave_sh}))
+ {
+ $tinfo->{'comment'}= "Failed to execute '$tinfo->{slave_sh}'";
+ return 1;
+ }
+
my $mysqld_basedir= $mysqld->value('basedir');
my $extra_opts= get_extra_opts($mysqld, $tinfo);
@@ -2803,24 +2821,6 @@ sub mysql_server_start($) {
# Write start of testcase to log file
mark_log($mysqld->value('log-error'), $tinfo);
- # Run <tname>-master.sh
- if ($mysqld->option('#!run-master-sh') and
- defined $tinfo->{master_sh} and
- run_system('/bin/sh ' . $tinfo->{master_sh}) )
- {
- $tinfo->{'comment'}= "Failed to execute '$tinfo->{master_sh}'";
- return 1;
- }
-
- # Run <tname>-slave.sh
- if ($mysqld->option('#!run-slave-sh') and
- defined $tinfo->{slave_sh} and
- run_system('/bin/sh ' . $tinfo->{slave_sh}))
- {
- $tinfo->{'comment'}= "Failed to execute '$tinfo->{slave_sh}'";
- return 1;
- }
-
if (!$opt_embedded_server)
{
mysqld_start($mysqld, $extra_opts) or
@@ -3165,6 +3165,7 @@ sub mysql_install_db {
{
my $sql_dir= dirname($path_sql);
# Use the mysql database for system tables
+ mtr_tofile($bootstrap_sql_file, "create database if not exists mysql;\n");
mtr_tofile($bootstrap_sql_file, "use mysql;\n");
# Add the offical mysql system tables