lib/oeqa/utils/sshcontrol.py: fix passing command to subprocess
authorStefan Stanacar <stefanx.stanacar@intel.com>
Tue, 9 Jul 2013 14:52:55 +0000 (17:52 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Jul 2013 09:04:15 +0000 (10:04 +0100)
commit7dc7a6e67fa4b1d487918ce6b33bbc1b909f95a7
tree197bdc4d7000d90aa77c28c7805987316202d5fa
parent34c85e8610f4cec9c401cbadc28e7a1b4d321313
lib/oeqa/utils/sshcontrol.py: fix passing command to subprocess

Don't use shlex.split in subprocess call and also prepend
. /etc/profile, because PATH over ssh is always
/usr/bin:/bin which isn't what many tests expect.

Changed in v2:
 We now need to use a separate call for scp command.

(From OE-Core rev: 1988de2fad86e8e34070ed6573a7be09fff5c0a2)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/sshcontrol.py