summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils
diff options
context:
space:
mode:
authorStefan Stanacar <stefanx.stanacar@intel.com>2013-09-03 16:01:11 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-03 19:57:38 +0100
commite3bc93c2eb6232f0c25517de3376a4d3c814f4f7 (patch)
treea257c4212730a85c380a89489fd60237b34abd0f /meta/lib/oeqa/utils
parent8318816e27040dabe1db18aba50075128648df19 (diff)
downloadpoky-e3bc93c2eb6232f0c25517de3376a4d3c814f4f7.tar.gz
lib/oeqa/runtime: smart: serve repo on host ip only and increase timeout
Don't start the http server on 0.0.0.0, listen on host ip (end of tap interface) only. Also use the timeout option (default is 300s for ssh commands) for all the commands run in this module (mostly because smart update timeouts on mips). (From OE-Core rev: 8c272641ef3e8410f331ca4133d28dea8f36e4f4) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils')
-rw-r--r--meta/lib/oeqa/utils/httpserver.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/httpserver.py b/meta/lib/oeqa/utils/httpserver.py
index d4b61547e8..f161a1bddd 100644
--- a/meta/lib/oeqa/utils/httpserver.py
+++ b/meta/lib/oeqa/utils/httpserver.py
@@ -15,12 +15,13 @@ class HTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
15 15
16class HTTPService(object): 16class HTTPService(object):
17 17
18 def __init__(self, root_dir): 18 def __init__(self, root_dir, host=''):
19 self.root_dir = root_dir 19 self.root_dir = root_dir
20 self.host = host
20 self.port = 0 21 self.port = 0
21 22
22 def start(self): 23 def start(self):
23 self.server = HTTPServer(('', self.port), HTTPRequestHandler) 24 self.server = HTTPServer((self.host, self.port), HTTPRequestHandler)
24 if self.port == 0: 25 if self.port == 0:
25 self.port = self.server.server_port 26 self.port = self.server.server_port
26 self.process = multiprocessing.Process(target=self.server.server_start, args=[self.root_dir]) 27 self.process = multiprocessing.Process(target=self.server.server_start, args=[self.root_dir])