[tools] testbot: Include the filename in LoadLogErrors() error messages.
Francois Gouget
fgouget at codeweavers.com
Tue Jun 14 08:59:16 CDT 2022
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
Otherwise there is no way to know which file was bad in case of errors,
for instance in UpdateTaskLogs.
---
testbot/lib/WineTestBot/LogUtils.pm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index 17cfc3525..2e3de83b8 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -1016,6 +1016,10 @@ sub LoadLogErrors($)
if (open(my $ErrorsFile, "<", "$LogPath.errors"))
{
LoadLogErrorsFromFh($LogInfo, $ErrorsFile);
+ if ($LogInfo->{BadLog})
+ {
+ $LogInfo->{BadLog} = "$LogInfo->{LogName}.errors: $LogInfo->{BadLog}";
+ }
delete $LogInfo->{CurGroup};
close($ErrorsFile);
}
--
2.30.2
More information about the wine-devel
mailing list