Make the logged command output useable in a shell.

This commit is contained in:
Jesse Keating 2007-12-03 20:38:02 -05:00 committed by Jesse Keating
parent 43c0267445
commit 9be2c94dc6
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def _doRunCommand(command, logger, rundir='/tmp', output=subprocess.PIPE, error=
"""Run a command and log the output. Error out if we get something on stderr"""
logger.info("Running %s" % ' '.join(command))
logger.info("Running %s" % subprocess.list2cmdline(command))
p1 = subprocess.Popen(command, cwd=rundir, stdout=output, stderr=error, universal_newlines=True, env=env)
(out, err) = p1.communicate()