diff options
| -rw-r--r-- | meta/lib/oeqa/utils/sshcontrol.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/sshcontrol.py b/meta/lib/oeqa/utils/sshcontrol.py index 00f5051053..1658744165 100644 --- a/meta/lib/oeqa/utils/sshcontrol.py +++ b/meta/lib/oeqa/utils/sshcontrol.py | |||
| @@ -136,8 +136,7 @@ class SSHControl(object): | |||
| 136 | timeout=0 - no timeout, let command run until it returns | 136 | timeout=0 - no timeout, let command run until it returns |
| 137 | """ | 137 | """ |
| 138 | 138 | ||
| 139 | # We need to source /etc/profile for a proper PATH on the target | 139 | command = self.ssh + [self.ip, 'export PATH=/usr/sbin:/sbin:/usr/bin:/bin; ' + command] |
| 140 | command = self.ssh + [self.ip, ' . /etc/profile; ' + command] | ||
| 141 | 140 | ||
| 142 | if timeout is None: | 141 | if timeout is None: |
| 143 | return self._internal_run(command, self.defaulttimeout, self.ignore_status) | 142 | return self._internal_run(command, self.defaulttimeout, self.ignore_status) |
