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

Unified Diff: build/android/gyp/util/build_utils.py

Issue 13473017: CheckCallDie: add option to suppress successful output (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: :/ Created 7 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 | « build/android/gyp/strip_library_for_apk.py ('k') | build/android/gyp/write_ordered_libraries.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/util/build_utils.py
diff --git a/build/android/pylib/build_utils.py b/build/android/gyp/util/build_utils.py
similarity index 96%
rename from build/android/pylib/build_utils.py
rename to build/android/gyp/util/build_utils.py
index c97f1ed03f3998f7838b963c97db872c8b0e800e..bdfa28aa8a5cd9c9f18d46c03060ab46361913e6 100644
--- a/build/android/pylib/build_utils.py
+++ b/build/android/gyp/util/build_utils.py
@@ -71,7 +71,7 @@ def ReadJson(path):
# particularly when the command fails, better highlights the command's failure.
# This call will directly exit on a failure in the subprocess so that no python
# stacktrace is printed after the output of the failed command.
-def CheckCallDie(args, cwd=None):
+def CheckCallDie(args, suppress_output=False, cwd=None):
if not cwd:
cwd = os.getcwd()
@@ -97,7 +97,7 @@ def CheckCallDie(args, cwd=None):
sys.exit(child.returncode)
else:
- if stdout:
+ if stdout and not suppress_output:
print stdout,
return stdout
« no previous file with comments | « build/android/gyp/strip_library_for_apk.py ('k') | build/android/gyp/write_ordered_libraries.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698