diff options
author | Mikko Rapeli <mikko.rapeli@bmw.de> | 2019-05-08 16:26:08 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-09 16:31:06 +0100 |
commit | ba5bee46131bbb31efba766c4d29e5bf71c664a7 (patch) | |
tree | 90652fc17c43cb6eecad4e722a7e7291f8086597 /meta/lib/oeqa/sdk/case.py | |
parent | e9444649f49431a8e203e6e2009a1de05e505007 (diff) | |
download | openembedded-core-contrib-ba5bee46131bbb31efba766c4d29e5bf71c664a7.tar.gz |
oeqa/sdk: use bash to execute SDK test commands
The commands only work with with bash. If /bin/sh is
dash like in Debian, the command execution fails with
errors like:
Standard Output: /bin/sh: 5: export: --sysroot: bad variable name
and all SDK tests fail.
Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk/case.py')
-rw-r--r-- | meta/lib/oeqa/sdk/case.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdk/case.py b/meta/lib/oeqa/sdk/case.py index 43fc00aaa2..ebb03af9eb 100644 --- a/meta/lib/oeqa/sdk/case.py +++ b/meta/lib/oeqa/sdk/case.py @@ -12,7 +12,7 @@ from oeqa.core.case import OETestCase class OESDKTestCase(OETestCase): def _run(self, cmd): return subprocess.check_output(". %s > /dev/null; %s;" % \ - (self.tc.sdk_env, cmd), shell=True, + (self.tc.sdk_env, cmd), shell=True, executable="/bin/bash", stderr=subprocess.STDOUT, universal_newlines=True) def fetch(self, workdir, dl_dir, url, archive=None): |