Module: tools Branch: master Commit: 6be4865e9d78290bad907a65b03cc4c0924f513a URL: https://source.winehq.org/git/tools.git/?a=commit;h=6be4865e9d78290bad907a65...
Author: Francois Gouget fgouget@codeweavers.com Date: Thu Apr 8 12:32:21 2021 +0200
testbot/LogUtils: Add a timeout error if the task timed out.
This ensures that the report is flagged as failed even if the timeout happened at the task level.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 5d2dc33..0b2edf7 100644 --- a/testbot/lib/WineTestBot/LogUtils.pm +++ b/testbot/lib/WineTestBot/LogUtils.pm @@ -455,6 +455,10 @@ sub _CloseTestUnit($$$) { _AddExtra($LogInfo, "The report seems to have been truncated"); } + elsif ($Last and $LogInfo->{TaskTimedOut}) + { + _AddExtra($LogInfo, "$Cur->{Unit}: Timeout"); + } } }