Make the logged command output useable in a shell.
This commit is contained in:
parent
43c0267445
commit
9be2c94dc6
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue