diff options
-rw-r--r-- | meta/lib/oeqa/targetcontrol.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py index d8a6ac03ec..17871f5707 100644 --- a/meta/lib/oeqa/targetcontrol.py +++ b/meta/lib/oeqa/targetcontrol.py | |||
@@ -144,7 +144,12 @@ class SimpleRemoteTarget(BaseTarget): | |||
144 | 144 | ||
145 | def __init__(self, d): | 145 | def __init__(self, d): |
146 | super(SimpleRemoteTarget, self).__init__(d) | 146 | super(SimpleRemoteTarget, self).__init__(d) |
147 | self.ip = d.getVar("TEST_TARGET_IP", True) or bb.fatal('Please set TEST_TARGET_IP with the IP address of the machine you want to run the tests on.') | 147 | addr = d.getVar("TEST_TARGET_IP", True) or bb.fatal('Please set TEST_TARGET_IP with the IP address of the machine you want to run the tests on.') |
148 | self.ip = addr.split(":")[0] | ||
149 | try: | ||
150 | self.port = addr.split(":")[1] | ||
151 | except IndexError: | ||
152 | self.port = None | ||
148 | bb.note("Target IP: %s" % self.ip) | 153 | bb.note("Target IP: %s" % self.ip) |
149 | self.server_ip = d.getVar("TEST_SERVER_IP", True) | 154 | self.server_ip = d.getVar("TEST_SERVER_IP", True) |
150 | if not self.server_ip: | 155 | if not self.server_ip: |
@@ -158,7 +163,7 @@ class SimpleRemoteTarget(BaseTarget): | |||
158 | super(SimpleRemoteTarget, self).deploy() | 163 | super(SimpleRemoteTarget, self).deploy() |
159 | 164 | ||
160 | def start(self, params=None): | 165 | def start(self, params=None): |
161 | self.connection = SSHControl(self.ip, logfile=self.sshlog) | 166 | self.connection = SSHControl(self.ip, logfile=self.sshlog, port=self.port) |
162 | 167 | ||
163 | def stop(self): | 168 | def stop(self): |
164 | self.connection = None | 169 | self.connection = None |