summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorsayantan.dutta@oracle.com <>2012-12-12 15:09:31 +0530
committersayantan.dutta@oracle.com <>2012-12-12 15:09:31 +0530
commit1cffb1921f93bfbbee4f258877744dd97aeac169 (patch)
tree1700f5e639c822fd2291bea92123b59d3cb08a9f /mysql-test
parent7ff0d02da7e8f8c72fdaf7ac23c9f56577f54031 (diff)
downloadmariadb-git-1cffb1921f93bfbbee4f258877744dd97aeac169.tar.gz
Bug #14737171:MTR DOES NOT PRESERVE TEST CASE LOGS ON RETRY-FAIL
Diffstat (limited to 'mysql-test')
-rwxr-xr-xmysql-test/mysql-test-run.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 44aac7e007e..2f545b05c3c 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -616,7 +616,9 @@ sub run_test_server ($$$) {
else {
mtr_report("\nRetrying test $tname, ".
"attempt($retries/$opt_retry)...\n");
- my $log_file_name= $opt_vardir."/log/".$result->{shortname}.".log";
+ #saving the log file as filename.failed in case of retry
+ my $worker_logdir= $result->{savedir};
+ my $log_file_name=dirname($worker_logdir)."/".$result->{shortname}.".log";
rename $log_file_name,$log_file_name.".failed";
delete($result->{result});
$result->{retries}= $retries+1;