mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Get name for .reject and .log files from result file name
This commit is contained in:
parent
52cafbccb0
commit
a14ae73f55
2 changed files with 7 additions and 2 deletions
|
@ -34,7 +34,12 @@ sub mtr_verbose (@);
|
|||
# We can't use diff -u or diff -a as these are not portable
|
||||
|
||||
sub mtr_show_failed_diff ($) {
|
||||
my $tname= shift;
|
||||
my $result_file_name= shift;
|
||||
|
||||
# The reject and log files have been dumped to
|
||||
# to filenames based on the result_file's name
|
||||
my $tname= basename($result_file_name);
|
||||
$tname=~ s/\..*$//;
|
||||
|
||||
my $reject_file= "r/$tname.reject";
|
||||
my $result_file= "r/$tname.result";
|
||||
|
|
|
@ -3203,7 +3203,7 @@ sub report_failure_and_restart ($) {
|
|||
my $tinfo= shift;
|
||||
|
||||
mtr_report_test_failed($tinfo);
|
||||
mtr_show_failed_diff($tinfo->{'name'});
|
||||
mtr_show_failed_diff($tinfo->{'result_file'});
|
||||
print "\n";
|
||||
if ( $opt_force )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue