summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-10-05 16:53:35 +0300
committerMichael Widenius <monty@askmonty.org>2011-10-05 16:53:35 +0300
commit5f607a2c705063ef23a9974b34151a991e80538f (patch)
tree0de4210469ed304104cb40c99052404661177335 /mysql-test/mysql-test-run.pl
parent5c3e18fe0e35fe8dc389238e84e644115e9a8535 (diff)
parent1351bef4df851f7a867c0732d46a322165168b63 (diff)
downloadmariadb-git-5f607a2c705063ef23a9974b34151a991e80538f.tar.gz
Automatic merge with 5.1
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl27
1 files changed, 0 insertions, 27 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index da4c6f44597..d1b1f8d57e6 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -2871,7 +2871,6 @@ sub mysql_server_start($) {
}
if (-d $datadir ) {
- preserve_error_log($mysqld);
mtr_verbose(" - removing '$datadir'");
rmtree($datadir);
}
@@ -2900,7 +2899,6 @@ sub mysql_server_start($) {
unless -d $datadir;
}
- restore_error_log($mysqld);
# Create the servers tmpdir
my $tmpdir= $mysqld->value('tmpdir');
@@ -4218,30 +4216,6 @@ sub run_testcase ($$) {
}
-# We want to preserve the error log between server restarts, as it may contain
-# valuable debugging information even if there is no test failure recorded.
-sub _preserve_error_log_names {
- my ($mysqld)= @_;
- my $error_log_file= $mysqld->if_exist('#log-error');
- return (undef, undef) unless $error_log_file;
- my $error_log_dir= dirname($error_log_file);
- my $save_name= $error_log_dir ."/../". $mysqld->name() .".error.log";
- return ($error_log_file, $save_name);
-}
-
-sub preserve_error_log {
- my ($mysqld)= @_;
- my ($error_log_file, $save_name)= _preserve_error_log_names($mysqld);
- rename($error_log_file, $save_name) if $save_name;
- # Ignore any errors, as it's just a best-effort to keep the log if possible.
-}
-
-sub restore_error_log {
- my ($mysqld)= @_;
- my ($error_log_file, $save_name)= _preserve_error_log_names($mysqld);
- rename($save_name, $error_log_file) if $save_name;
-}
-
# Keep track of last position in mysqld error log where we scanned for
# warnings, so we can attribute any warnings found to the correct test
# suite or server restart.
@@ -4758,7 +4732,6 @@ sub clean_datadir {
for (all_servers())
{
- preserve_error_log($_); # or at least, try to
my $dir= "$opt_vardir/".$_->{name};
mtr_verbose(" - removing '$dir'");
rmtree($dir);