Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 import bb_utils | 9 import bb_utils |
| 10 import bb_annotations | 10 import bb_annotations |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 | 74 |
| 75 def ExtractBuild(options): | 75 def ExtractBuild(options): |
| 76 bb_annotations.PrintNamedStep('extract_build') | 76 bb_annotations.PrintNamedStep('extract_build') |
| 77 RunCmd([os.path.join(SLAVE_SCRIPTS_DIR, 'extract_build.py')] | 77 RunCmd([os.path.join(SLAVE_SCRIPTS_DIR, 'extract_build.py')] |
| 78 + bb_utils.EncodeProperties(options), | 78 + bb_utils.EncodeProperties(options), |
| 79 warning_code=1, cwd=DIR_BUILD_ROOT) | 79 warning_code=1, cwd=DIR_BUILD_ROOT) |
| 80 | 80 |
| 81 | 81 |
| 82 def FindBugs(options): | 82 def FindBugs(options): |
| 83 bb_annotations.PrintNamedStep('findbugs') | 83 bb_annotations.PrintNamedStep('findbugs') |
| 84 build_type = [] | 84 RunCmd([SrcPath('build', 'android', 'findbugs_diff.py')]) |
| 85 if options.target == 'Release': | |
|
Andrew Hayden (chromium.org)
2014/03/28 08:13:25
We can't just nuke this, because we need the Relea
| |
| 86 build_type = ['--release-build'] | |
| 87 RunCmd([SrcPath('build', 'android', 'findbugs_diff.py')] + build_type) | |
| 88 RunCmd([SrcPath( | 85 RunCmd([SrcPath( |
| 89 'tools', 'android', 'findbugs_plugin', 'test', | 86 'tools', 'android', 'findbugs_plugin', 'test', |
| 90 'run_findbugs_plugin_tests.py')] + build_type) | 87 'run_findbugs_plugin_tests.py')]) |
| 91 | 88 |
| 92 | 89 |
| 93 def BisectPerfRegression(options): | 90 def BisectPerfRegression(options): |
| 94 args = [] | 91 args = [] |
| 95 if options.extra_src: | 92 if options.extra_src: |
| 96 args = ['--extra_src', options.extra_src] | 93 args = ['--extra_src', options.extra_src] |
| 97 RunCmd([SrcPath('tools', 'prepare-bisect-perf-regression.py'), | 94 RunCmd([SrcPath('tools', 'prepare-bisect-perf-regression.py'), |
| 98 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) | 95 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) |
| 99 RunCmd([SrcPath('tools', 'run-bisect-perf-regression.py'), | 96 RunCmd([SrcPath('tools', 'run-bisect-perf-regression.py'), |
| 100 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)] + args) | 97 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)] + args) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 131 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
| 135 setattr(options, 'extra_src', | 132 setattr(options, 'extra_src', |
| 136 options.factory_properties.get('extra_src', '')) | 133 options.factory_properties.get('extra_src', '')) |
| 137 | 134 |
| 138 if options.steps: | 135 if options.steps: |
| 139 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options) | 136 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options) |
| 140 | 137 |
| 141 | 138 |
| 142 if __name__ == '__main__': | 139 if __name__ == '__main__': |
| 143 sys.exit(main(sys.argv)) | 140 sys.exit(main(sys.argv)) |
| OLD | NEW |