summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdk/case.py
blob: 782db8b5236bd7988acb25a4ebb736d08c696a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
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).decode("utf-8")