| Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 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, universal_newlines=True) | ||||