summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/targetcontrol.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py
index ba5e6e5dc1..46e5f7fa6b 100644
--- a/meta/lib/oeqa/targetcontrol.py
+++ b/meta/lib/oeqa/targetcontrol.py
@@ -133,7 +133,7 @@ class SimpleRemoteTarget(BaseTarget):
133 self.server_ip = d.getVar("TEST_SERVER_IP", True) 133 self.server_ip = d.getVar("TEST_SERVER_IP", True)
134 if not self.server_ip: 134 if not self.server_ip:
135 try: 135 try:
136 self.server_ip = subprocess.check_output(['ip', 'route', 'get', self.ip ]).split()[6] 136 self.server_ip = subprocess.check_output(['ip', 'route', 'get', self.ip ]).split("\n")[0].split()[-1]
137 except Exception as e: 137 except Exception as e:
138 bb.fatal("Failed to determine the host IP address (alternatively you can set TEST_SERVER_IP with the IP address of this machine): %s" % e) 138 bb.fatal("Failed to determine the host IP address (alternatively you can set TEST_SERVER_IP with the IP address of this machine): %s" % e)
139 bb.note("Server IP: %s" % self.server_ip) 139 bb.note("Server IP: %s" % self.server_ip)