[PATCH] testbot/TestAgent: Fix handling of connection timeouts.
17 Sep
2019
17 Sep
'19
10:34 a.m.
$@ does not just contain the die string we provided but also where die was called. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> --- testbot/lib/WineTestBot/TestAgent.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm index a4a2f4906..d3d7137a5 100644 --- a/testbot/lib/WineTestBot/TestAgent.pm +++ b/testbot/lib/WineTestBot/TestAgent.pm @@ -938,7 +938,7 @@ sub _Connect($) if ($@) { - if ($@ eq "timeout") + if ($@ =~ /^timeout /) { $self->_SetError($FATAL, "Timed out in $Step while connecting to $self->{connection}"); } -- 2.20.1
2369
Age (days ago)
2369
Last active (days ago)
0 comments
1 participants
participants (1)
-
Francois Gouget