Lines Matching refs:stdout
89 def __init__(self, returncode, cmd, cwd, stdout, stderr):
94 self.stdout = stdout
99 "===STDOUT===\n%s\n===STDERR===\n%s\n" %
100 (self.cmd, self.returncode, self.cwd, self.stdout, self.stderr))
108 """Gets stdout from runnng the specified shell command.
110 Similar to subprocess.check_output() except that it can capture stdout and
118 stdout from running the command.
122 p = subprocess.Popen(args=args, cwd=cwd, stdout=subprocess.PIPE,
124 stdout, stderr = p.communicate()
126 return stdout
128 raise CommandError(p.returncode, ' '.join(args), cwd, stdout, stderr)