summaryrefslogtreecommitdiffstats
path: root/poky/meta/lib/oeqa/sdk/case.py
diff options
context:
space:
mode:
Diffstat (limited to 'poky/meta/lib/oeqa/sdk/case.py')
-rw-r--r--poky/meta/lib/oeqa/sdk/case.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/poky/meta/lib/oeqa/sdk/case.py b/poky/meta/lib/oeqa/sdk/case.py
new file mode 100644
index 000000000..963aa8d35
--- /dev/null
+++ b/poky/meta/lib/oeqa/sdk/case.py
@@ -0,0 +1,12 @@
+# Copyright (C) 2016 Intel Corporation
+# Released under the MIT license (see COPYING.MIT)
+
+import subprocess
+
+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,
+ stderr=subprocess.STDOUT, universal_newlines=True)
OpenPOWER on IntegriCloud