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

Unified Diff: pydir/utils.py

Issue 1604063002: Subzero: Always enable --echo-cmd in the lit tests. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: changes suggested by stichnot Created 4 years, 11 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 | tests_lit/lit.cfg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pydir/utils.py
diff --git a/pydir/utils.py b/pydir/utils.py
index 6039e777a2dca277eee8789a2649d8f57d176eaf..f81c07ed4c3bf07236fe345588eff354b5d2fdee 100644
--- a/pydir/utils.py
+++ b/pydir/utils.py
@@ -6,7 +6,10 @@ def shellcmd(command, echo=True):
if not isinstance(command, str):
command = ' '.join(command)
- if echo: print '[cmd]', command
+ if echo:
+ print >> sys.stderr, '[cmd]'
+ print >> sys.stderr, command
+ print >> sys.stderr
stdout_result = subprocess.check_output(command, shell=True)
if echo: sys.stdout.write(stdout_result)
« no previous file with comments | « no previous file | tests_lit/lit.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698