diff options
Diffstat (limited to 'meta/lib/oeqa/sdk/case.py')
-rw-r--r-- | meta/lib/oeqa/sdk/case.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdk/case.py b/meta/lib/oeqa/sdk/case.py new file mode 100644 index 0000000000..782db8b523 --- /dev/null +++ b/meta/lib/oeqa/sdk/case.py | |||
@@ -0,0 +1,12 @@ | |||
1 | # Copyright (C) 2016 Intel Corporation | ||
2 | # Released under the MIT license (see COPYING.MIT) | ||
3 | |||
4 | import subprocess | ||
5 | |||
6 | from oeqa.core.case import OETestCase | ||
7 | |||
8 | class OESDKTestCase(OETestCase): | ||
9 | def _run(self, cmd): | ||
10 | return subprocess.check_output(". %s > /dev/null; %s;" % \ | ||
11 | (self.tc.sdk_env, cmd), shell=True, | ||
12 | stderr=subprocess.STDOUT).decode("utf-8") | ||