diff options
Diffstat (limited to 'poky/meta/lib/oeqa/sdk/case.py')
-rw-r--r-- | poky/meta/lib/oeqa/sdk/case.py | 12 |
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 0000000000..963aa8d358 --- /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) |