diff options
author | unknown <sayantan.dutta@oracle.com> | 2012-12-12 15:09:31 +0530 |
---|---|---|
committer | unknown <sayantan.dutta@oracle.com> | 2012-12-12 15:09:31 +0530 |
commit | 72343da4b6f1e31b0a940ac941196e202c720d71 (patch) | |
tree | 1700f5e639c822fd2291bea92123b59d3cb08a9f /mysql-test/mysql-test-run.pl | |
parent | 2e10e7c38eb6ccef3319f3fc5267224c171628da (diff) | |
download | mariadb-git-72343da4b6f1e31b0a940ac941196e202c720d71.tar.gz |
Bug #14737171:MTR DOES NOT PRESERVE TEST CASE LOGS ON RETRY-FAIL
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 4 |
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; |