summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorsayantan.dutta@oracle.com <>2012-12-11 18:34:04 +0530
committersayantan.dutta@oracle.com <>2012-12-11 18:34:04 +0530
commit8f3f4425d720d02253d81b8c6a879b83d6749190 (patch)
treefa622bd8707228604592ea06f352ff8f78cc3f9d /mysql-test
parent295ad74326600a878d2d3a9920747301b1d94e00 (diff)
downloadmariadb-git-8f3f4425d720d02253d81b8c6a879b83d6749190.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.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 674abe7e102..44aac7e007e 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -616,6 +616,8 @@ 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";
+ rename $log_file_name,$log_file_name.".failed";
delete($result->{result});
$result->{retries}= $retries+1;
$result->write_test($sock, 'TESTCASE');