1*eb8dc403SDave Cobbley# Copyright (C) 2016 Intel Corporation 2*eb8dc403SDave Cobbley# Released under the MIT license (see COPYING.MIT) 3*eb8dc403SDave Cobbley 4*eb8dc403SDave Cobbleyimport subprocess 5*eb8dc403SDave Cobbley 6*eb8dc403SDave Cobbleyfrom oeqa.core.case import OETestCase 7*eb8dc403SDave Cobbley 8*eb8dc403SDave Cobbleyclass OESDKTestCase(OETestCase): 9*eb8dc403SDave Cobbley def _run(self, cmd): 10*eb8dc403SDave Cobbley return subprocess.check_output(". %s > /dev/null; %s;" % \ 11*eb8dc403SDave Cobbley (self.tc.sdk_env, cmd), shell=True, 12*eb8dc403SDave Cobbley stderr=subprocess.STDOUT, universal_newlines=True) 13