testbot/TestAgent: Don't try to parse $TunnelOpt as an SSH URI if it is set to 'never'.

Francois Gouget fgouget at codeweavers.com
Mon Feb 25 10:03:11 CST 2013


---
 testbot/scripts/TestAgent |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testbot/scripts/TestAgent b/testbot/scripts/TestAgent
index 8605002..a0c5183 100755
--- a/testbot/scripts/TestAgent
+++ b/testbot/scripts/TestAgent
@@ -249,7 +249,7 @@ if (defined $Usage)
 
 $TunnelOpt = $Tunnel if (!defined $TunnelOpt);
 my $TunnelInfo;
-if ($TunnelOpt)
+if ($TunnelOpt and $TunnelOpt =~ /^ssh:/)
 {
     my $ParsedURI = URI->new($TunnelOpt);
     %$TunnelInfo = %$TunnelDefaults if ($TunnelDefaults);
-- 
1.7.10.4




More information about the wine-patches mailing list