diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-10-31 17:24:25 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:19 +0000 |
commit | 8a37763ae9e5b8bfa4ed89c2ab8642b8f5bfc287 (patch) | |
tree | d4af06c2d2efd97b340aa657959a7abca1af4a1a /meta/lib/oeqa/sdk/case.py | |
parent | 9a23e0f703ec3ccb99b354102d804eda13543b23 (diff) | |
download | poky-8a37763ae9e5b8bfa4ed89c2ab8642b8f5bfc287.tar.gz |
oeqa/sdk: Add case and context modules for the SDK component
Adds case and context modules for SDK based on oetest.py old code.
Enables SDK Test component usage with oe-test, the SDK Test component
adds command line options for specify sdk installed dir, sdk environment
and target/hosts maniftest.
[YOCTO #10599]
(From OE-Core rev: 19e875dd81c42841666e6db5f6b665b4e1cddfe6)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
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 | 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") | ||