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

Side by Side Diff: tools/android/findbugs_plugin/test/run_findbugs_plugin_tests.py

Issue 15839006: Android: removes pylib.constants.CHROME_DIR. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: find_bugs Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/pylib/constants.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # This is used to test the findbugs plugin, it calls 7 # This is used to test the findbugs plugin, it calls
8 # build/android/pylib/utils/findbugs.py to analyze the classes in 8 # build/android/pylib/utils/findbugs.py to analyze the classes in
9 # org.chromium.tools.findbugs.plugin package, and expects to get the same 9 # org.chromium.tools.findbugs.plugin package, and expects to get the same
10 # issue with those in expected_result.txt. 10 # issue with those in expected_result.txt.
(...skipping 14 matching lines...) Expand all
25 from pylib import constants 25 from pylib import constants
26 from pylib.utils import findbugs 26 from pylib.utils import findbugs
27 27
28 28
29 def main(argv): 29 def main(argv):
30 parser = findbugs.GetCommonParser() 30 parser = findbugs.GetCommonParser()
31 31
32 options, _ = parser.parse_args() 32 options, _ = parser.parse_args()
33 33
34 if not options.known_bugs: 34 if not options.known_bugs:
35 options.known_bugs = os.path.join(constants.CHROME_DIR, 'tools', 'android', 35 options.known_bugs = os.path.join(constants.DIR_SOURCE_ROOT, 'tools',
36 'findbugs_plugin', 'test', 36 'android', 'findbugs_plugin', 'test',
37 'expected_result.txt') 37 'expected_result.txt')
38 if not options.only_analyze: 38 if not options.only_analyze:
39 options.only_analyze = 'org.chromium.tools.findbugs.plugin.*' 39 options.only_analyze = 'org.chromium.tools.findbugs.plugin.*'
40 40
41 return findbugs.Run(options) 41 return findbugs.Run(options)
42 42
43 if __name__ == '__main__': 43 if __name__ == '__main__':
44 sys.exit(main(sys.argv)) 44 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/android/pylib/constants.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698