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

Unified Diff: build/android/findbugs_diff.py

Issue 1258303003: [Android] Suppress findbugs stderr output. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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/findbugs_action.gypi ('k') | build/android/pylib/cmd_helper.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/findbugs_diff.py
diff --git a/build/android/findbugs_diff.py b/build/android/findbugs_diff.py
index f55e46261bef9d87376dfd15e441ed54c1829d72..06c689a31ef6fad3a2c1295266cfc6bfc0d23487 100755
--- a/build/android/findbugs_diff.py
+++ b/build/android/findbugs_diff.py
@@ -22,6 +22,7 @@ import sys
from pylib import constants
from pylib.utils import findbugs
+from pylib.utils import run_tests_helper
_DEFAULT_BASE_DIR = os.path.join(
constants.DIR_SOURCE_ROOT, 'build', 'android', 'findbugs_filter')
@@ -35,6 +36,8 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument(
+ '-v', '--verbose', action='count', help='Enable verbose logging.')
+ parser.add_argument(
'-a', '--auxclasspath', default=None, dest='auxclasspath',
help='Set aux classpath for analysis.')
parser.add_argument(
@@ -69,6 +72,9 @@ def main():
help='JAR file to analyze')
args = parser.parse_args(build_utils.ExpandFileArgs(sys.argv[1:]))
+
+ run_tests_helper.SetLogLevel(args.verbose)
+
if args.auxclasspath:
args.auxclasspath = args.auxclasspath.split(':')
elif args.auxclasspath_gyp:
« no previous file with comments | « build/android/findbugs_action.gypi ('k') | build/android/pylib/cmd_helper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698