Don't use output argument for CalledProcessError (Python 2.7 only)

Also add _Print statement so that stdout is printed.

BUG=chromium-os:9257
TEST=Run cros_mark_as_stable.py clean / commit

Change-Id: I9a01d6369d4b14ca0be812b8b1509c8375b1d575

Review URL: http://codereview.chromium.org/5063004
This commit is contained in:
David James 2010-11-16 15:47:25 -08:00
parent 8ce0100b03
commit d4993a7311

View File

@ -248,7 +248,8 @@ def _SimpleRunCommand(command):
stdout = proc_handle.communicate()[0]
retcode = proc_handle.wait()
if retcode != 0:
raise subprocess.CalledProcessError(retcode, command, output=stdout)
_Print(stdout)
raise subprocess.CalledProcessError(retcode, command)
return stdout