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