Commit a172c212 authored by unknown's avatar unknown

Bug #14737171: MTR DOES NOT PRESERVE TEST CASE LOGS ON RETRY-FAIL

parent d426504b
......@@ -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');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment