diff options
author | Ross Burton <ross.burton@intel.com> | 2015-11-25 15:00:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-01 21:30:56 +0000 |
commit | 0f3fb5bbf2fd7db82898fed3281af143387316ff (patch) | |
tree | b6d64194fa0bb9303f58d7bde96ce09435811375 /meta/lib/oeqa | |
parent | 4f870f020bbf908ab87990803f3c278bf4e44843 (diff) | |
download | openembedded-core-0f3fb5bbf2fd7db82898fed3281af143387316ff.tar.gz openembedded-core-0f3fb5bbf2fd7db82898fed3281af143387316ff.tar.bz2 openembedded-core-0f3fb5bbf2fd7db82898fed3281af143387316ff.zip |
oeqa/sshcontrol: don't source profile
Instead of sourcing /etc/profile to get $PATH including /usr/sbin, just assign
to PATH in the ssh invocation.
The remote /etc/profile may not actually be manipulating PATH as we expect, and
there may be other commands which can interfere with the tests (such as resize
emitting a series of control characters on connection).
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa')
-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): timeout=0 - no timeout, let command run until it returns """ - # We need to source /etc/profile for a proper PATH on the target - command = self.ssh + [self.ip, ' . /etc/profile; ' + command] + command = self.ssh + [self.ip, 'export PATH=/usr/sbin:/sbin:/usr/bin:/bin; ' + command] if timeout is None: return self._internal_run(command, self.defaulttimeout, self.ignore_status) |