Module: tools Branch: master Commit: cceea335a9c789272ab0faff56fac6a8ff9ddf52 URL: https://source.winehq.org/git/tools.git/?a=commit;h=cceea335a9c789272ab0faff...
Author: Francois Gouget fgouget@codeweavers.com Date: Wed Jan 22 11:12:13 2020 +0100
testbot/UpdateTaskLogs: Fix reporting log access errors.
Use the error message returned by ParseWineTestReport() when it could not open the report instead of recreating it from scratch.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
testbot/bin/UpdateTaskLogs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/bin/UpdateTaskLogs b/testbot/bin/UpdateTaskLogs index ae3b305..ca9bf44 100755 --- a/testbot/bin/UpdateTaskLogs +++ b/testbot/bin/UpdateTaskLogs @@ -193,7 +193,7 @@ sub BuildErrFile($$$$) my ($TestUnitCount, $TimeoutCount, $LogFailures, $LogErrors) = ParseWineTestReport("$Dir/$ReportName", $IsWineTest, $TaskTimedOut); if (!defined $LogFailures and @$LogErrors == 1) { - return "Unable to open '$TaskKey/$ReportName' for reading: $!"; + return "$TaskKey: $LogErrors->[0]"; } return undef if (!@$LogErrors);