diff options
Diffstat (limited to 'meta/lib/oeqa/sdk')
-rw-r--r-- | meta/lib/oeqa/sdk/case.py | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/sdk/utils/sdkbuildproject.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/sdk/case.py b/meta/lib/oeqa/sdk/case.py index 963aa8d358..c0aef18cd5 100644 --- a/meta/lib/oeqa/sdk/case.py +++ b/meta/lib/oeqa/sdk/case.py | |||
@@ -8,5 +8,5 @@ from oeqa.core.case import OETestCase | |||
8 | class OESDKTestCase(OETestCase): | 8 | class OESDKTestCase(OETestCase): |
9 | def _run(self, cmd): | 9 | def _run(self, cmd): |
10 | return subprocess.check_output(". %s > /dev/null; %s;" % \ | 10 | return subprocess.check_output(". %s > /dev/null; %s;" % \ |
11 | (self.tc.sdk_env, cmd), shell=True, | 11 | (self.tc.sdk_env, cmd), shell=True, executable="/bin/bash", |
12 | stderr=subprocess.STDOUT, universal_newlines=True) | 12 | stderr=subprocess.STDOUT, universal_newlines=True) |
diff --git a/meta/lib/oeqa/sdk/utils/sdkbuildproject.py b/meta/lib/oeqa/sdk/utils/sdkbuildproject.py index 6fed73e350..eafbd7a034 100644 --- a/meta/lib/oeqa/sdk/utils/sdkbuildproject.py +++ b/meta/lib/oeqa/sdk/utils/sdkbuildproject.py | |||
@@ -42,7 +42,8 @@ class SDKBuildProject(BuildProject): | |||
42 | def _run(self, cmd): | 42 | def _run(self, cmd): |
43 | self.log("Running . %s; " % self.sdkenv + cmd) | 43 | self.log("Running . %s; " % self.sdkenv + cmd) |
44 | try: | 44 | try: |
45 | output = subprocess.check_output(". %s; " % self.sdkenv + cmd, shell=True, stderr=subprocess.STDOUT) | 45 | output = subprocess.check_output(". %s; " % self.sdkenv + cmd, shell=True, |
46 | executable='/bin/bash', stderr=subprocess.STDOUT) | ||
46 | except subprocess.CalledProcessError as exc: | 47 | except subprocess.CalledProcessError as exc: |
47 | print(exc.output.decode('utf-8')) | 48 | print(exc.output.decode('utf-8')) |
48 | return exc.returncode | 49 | return exc.returncode |