Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: scripts/run_cmd.py

Issue 199183003: Yet more print debugging... (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/run_cmd.py
diff --git a/scripts/run_cmd.py b/scripts/run_cmd.py
index edc00e64d7d83f95d2385e14493d567af19c4f7e..88f5921eef2052638a0fc9f1be4aba2061c9f2c1 100755
--- a/scripts/run_cmd.py
+++ b/scripts/run_cmd.py
@@ -172,6 +172,7 @@ def _launch_cmd(cmd):
Returns:
subprocess.Popen instance.
"""
+ print ' '.join(cmd)
return subprocess.Popen(cmd, shell=False, stderr=subprocess.PIPE,
stdout=subprocess.PIPE)
@@ -184,6 +185,8 @@ def _get_result(popen):
Returns:
A dictionary with stdout, stderr, and returncode as keys.
"""
+ print popen.stdout.read()
+ print popen.stderr.read()
stdout, stderr = popen.communicate()
return CommandResults.make(stdout=stdout,
stderr=stderr,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698