mirror of
https://github.com/MariaDB/server.git
synced 2025-08-27 13:04:36 +03:00
Add name of test that generated the warning to "warnings" file
This commit is contained in:
@@ -272,6 +272,7 @@ sub mtr_report_stats ($) {
|
|||||||
{
|
{
|
||||||
foreach my $errlog ( sort glob("$::opt_vardir/log/*.err") )
|
foreach my $errlog ( sort glob("$::opt_vardir/log/*.err") )
|
||||||
{
|
{
|
||||||
|
my $testname= "";
|
||||||
unless ( open(ERR, $errlog) )
|
unless ( open(ERR, $errlog) )
|
||||||
{
|
{
|
||||||
mtr_warning("can't read $errlog");
|
mtr_warning("can't read $errlog");
|
||||||
@@ -287,10 +288,14 @@ sub mtr_report_stats ($) {
|
|||||||
{
|
{
|
||||||
next; # Skip these lines
|
next; # Skip these lines
|
||||||
}
|
}
|
||||||
|
if ( /CURRENT_TEST: (.*)/ )
|
||||||
|
{
|
||||||
|
$testname= $1;
|
||||||
|
}
|
||||||
if ( /$pattern/ )
|
if ( /$pattern/ )
|
||||||
{
|
{
|
||||||
$found_problems= 1;
|
$found_problems= 1;
|
||||||
print WARN basename($errlog) . ": $_";
|
print WARN basename($errlog) . ": $testname: $_";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user