| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 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 """Run Performance Test Bisect Tool | 6 """Run Performance Test Bisect Tool |
| 7 | 7 |
| 8 This script is used by a trybot to run the src/tools/bisect-perf-regression.py | 8 This script is used by a trybot to run the src/tools/bisect-perf-regression.py |
| 9 script with the parameters specified in run-bisect-perf-regression.cfg. It will | 9 script with the parameters specified in run-bisect-perf-regression.cfg. It will |
| 10 check out a copy of the depot in a subdirectory 'bisect' of the working | 10 check out a copy of the depot in a subdirectory 'bisect' of the working |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 | 360 |
| 361 if config['repeat_count']: | 361 if config['repeat_count']: |
| 362 cmd.extend(['-r', config['repeat_count']]) | 362 cmd.extend(['-r', config['repeat_count']]) |
| 363 | 363 |
| 364 if config['truncate_percent']: | 364 if config['truncate_percent']: |
| 365 cmd.extend(['-t', config['truncate_percent']]) | 365 cmd.extend(['-t', config['truncate_percent']]) |
| 366 | 366 |
| 367 if config['max_time_minutes']: | 367 if config['max_time_minutes']: |
| 368 cmd.extend(['--max_time_minutes', config['max_time_minutes']]) | 368 cmd.extend(['--max_time_minutes', config['max_time_minutes']]) |
| 369 | 369 |
| 370 if config.has_key('bisect_mode'): |
| 371 cmd.extend(['--bisect_mode', config['bisect_mode']]) |
| 372 |
| 370 cmd.extend(['--build_preference', 'ninja']) | 373 cmd.extend(['--build_preference', 'ninja']) |
| 371 | 374 |
| 372 if '--browser=cros' in config['command']: | 375 if '--browser=cros' in config['command']: |
| 373 cmd.extend(['--target_platform', 'cros']) | 376 cmd.extend(['--target_platform', 'cros']) |
| 374 | 377 |
| 375 if os.environ[CROS_BOARD_ENV] and os.environ[CROS_IP_ENV]: | 378 if os.environ[CROS_BOARD_ENV] and os.environ[CROS_IP_ENV]: |
| 376 cmd.extend(['--cros_board', os.environ[CROS_BOARD_ENV]]) | 379 cmd.extend(['--cros_board', os.environ[CROS_BOARD_ENV]]) |
| 377 cmd.extend(['--cros_remote_ip', os.environ[CROS_IP_ENV]]) | 380 cmd.extend(['--cros_remote_ip', os.environ[CROS_IP_ENV]]) |
| 378 else: | 381 else: |
| 379 print 'Error: Cros build selected, but BISECT_CROS_IP or'\ | 382 print 'Error: Cros build selected, but BISECT_CROS_IP or'\ |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 opts.path_to_goma) | 503 opts.path_to_goma) |
| 501 | 504 |
| 502 print 'Error: Could not load config file. Double check your changes to '\ | 505 print 'Error: Could not load config file. Double check your changes to '\ |
| 503 'run-bisect-perf-regression.cfg/run-perf-test.cfg for syntax errors.' | 506 'run-bisect-perf-regression.cfg/run-perf-test.cfg for syntax errors.' |
| 504 print | 507 print |
| 505 return 1 | 508 return 1 |
| 506 | 509 |
| 507 | 510 |
| 508 if __name__ == '__main__': | 511 if __name__ == '__main__': |
| 509 sys.exit(main()) | 512 sys.exit(main()) |
| OLD | NEW |