diff options
author | Danilo Segan <danilo@canonical.com> | 2012-08-23 19:13:03 +0200 |
---|---|---|
committer | Danilo Segan <danilo@canonical.com> | 2012-08-23 19:13:03 +0200 |
commit | eba4873f4e79cc61c1d57f0c7a3be4886fbde7d0 (patch) | |
tree | 6f7d32d526280409b6061f088a7a37fdc890d5ac /scripts | |
parent | 641fa63238c7cdc8321c00537ad9ab12e66db4bb (diff) |
Redirect stdin/stdout in run_subcommand.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update-deployment.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/update-deployment.py b/scripts/update-deployment.py index 6cfca6b..46f43f6 100755 --- a/scripts/update-deployment.py +++ b/scripts/update-deployment.py @@ -85,7 +85,8 @@ class UpdateDeploymentScript(LinaroScript): code_tree.update() def run_subcommand(self, arguments, cwd=None): - process = subprocess.Popen(arguments, cwd=cwd) + process = subprocess.Popen(arguments, cwd=cwd, stdout=subprocess.PIPE, + stderr=subprocess.PIPE) process_out, process_err = process.communicate() if process_out is not None: logger.debug("stdout:\n" + "\n\t".join(process_out.splitlines())) |