diff options
Diffstat (limited to 'meta/lib/oeqa/utils/qemurunner.py')
-rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index df546c7bdd..b5fed6c9fe 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
@@ -406,9 +406,9 @@ class QemuRunner: | |||
406 | try: | 406 | try: |
407 | if self.use_slirp: | 407 | if self.use_slirp: |
408 | tcp_ports = cmdline.split("hostfwd=tcp:")[1] | 408 | tcp_ports = cmdline.split("hostfwd=tcp:")[1] |
409 | tcp_ports = tcp_ports.split(":")[1] | 409 | ip, tcp_ports = tcp_ports.split(":")[:2] |
410 | host_port = tcp_ports[:tcp_ports.find('-')] | 410 | host_port = tcp_ports[:tcp_ports.find('-')] |
411 | self.ip = "localhost:%s" % host_port | 411 | self.ip = "%s:%s" % (ip, host_port) |
412 | else: | 412 | else: |
413 | ips = re.findall(r"((?:[0-9]{1,3}\.){3}[0-9]{1,3})", cmdline.split("ip=")[1]) | 413 | ips = re.findall(r"((?:[0-9]{1,3}\.){3}[0-9]{1,3})", cmdline.split("ip=")[1]) |
414 | self.ip = ips[0] | 414 | self.ip = ips[0] |