def run_python(args):
    p = subprocess.Popen(([sys.executable] + args), cwd=self.usecase_dir, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env)
    (out, _) = p.communicate()
    rc = p.wait()
    if (rc != 0):
        self.fail(('python failed with the following output:\n%s' % out.decode('utf-8', 'ignore')))
def run_python(args):
    p = subprocess.Popen(([sys.executable] + args), cwd=self.usecase_dir, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env)
    (out, _) = p.communicate()
    rc = p.wait()
    if (rc != 0):
        self.fail(('python failed with the following output:\n%s' % out.decode('utf-8', 'ignore')))