summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-05-20 11:41:51 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-05-20 11:41:51 +0300
commitf4f0ef3e3771281b7f25bc26cc2cbf4e2dbe325a (patch)
tree78145ee56dede4db4e0851f575cd4fffb4f2e649 /mysql-test/mysql-test-run.pl
parentd4f97e2086848cedfdd35a6c1cf286f8dad26c5c (diff)
parente380f447421882d8a0700e8821e55e2786b426ad (diff)
downloadmariadb-git-f4f0ef3e3771281b7f25bc26cc2cbf4e2dbe325a.tar.gz
Merge 10.2 into 10.3
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl10
1 files changed, 8 insertions, 2 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index d8ad6d334be..3abb0d5d6fe 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -947,8 +947,14 @@ sub run_test_server ($$$) {
if ( $result->is_failed() ) {
my $worker_logdir= $result->{savedir};
my $log_file_name=dirname($worker_logdir)."/".$result->{shortname}.".log";
- $result->{'logfile-failed'} = mtr_lastlinesfromfile($log_file_name, 20);
- rename $log_file_name,$log_file_name.".failed";
+
+ if (-e $log_file_name) {
+ $result->{'logfile-failed'} = mtr_lastlinesfromfile($log_file_name, 20);
+ } else {
+ $result->{'logfile-failed'} = "";
+ }
+
+ rename $log_file_name, $log_file_name.".failed";
}
delete($result->{result});
$result->{retries}= $retries+1;