| 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 |
| 11 directory provided, and run the bisect-perf-regression.py script there. | 11 directory provided, and run the bisect-perf-regression.py script there. |
| 12 | 12 |
| 13 """ | 13 """ |
| 14 | 14 |
| 15 import imp | 15 import imp |
| 16 import optparse | 16 import optparse |
| 17 import os | 17 import os |
| 18 import platform | 18 import platform |
| 19 import subprocess | 19 import subprocess |
| 20 import sys | 20 import sys |
| 21 import traceback | 21 import traceback |
| 22 | 22 |
| 23 import bisect_utils | 23 from auto_bisect import bisect_utils |
| 24 |
| 24 bisect = imp.load_source('bisect-perf-regression', | 25 bisect = imp.load_source('bisect-perf-regression', |
| 25 os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), | 26 os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), |
| 26 'bisect-perf-regression.py')) | 27 'bisect-perf-regression.py')) |
| 27 | 28 |
| 28 | 29 |
| 29 CROS_BOARD_ENV = 'BISECT_CROS_BOARD' | 30 CROS_BOARD_ENV = 'BISECT_CROS_BOARD' |
| 30 CROS_IP_ENV = 'BISECT_CROS_IP' | 31 CROS_IP_ENV = 'BISECT_CROS_IP' |
| 31 | 32 |
| 32 | 33 |
| 33 class Goma(object): | 34 class Goma(object): |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 opts.path_to_goma) | 515 opts.path_to_goma) |
| 515 | 516 |
| 516 print 'Error: Could not load config file. Double check your changes to '\ | 517 print 'Error: Could not load config file. Double check your changes to '\ |
| 517 'run-bisect-perf-regression.cfg/run-perf-test.cfg for syntax errors.' | 518 'run-bisect-perf-regression.cfg/run-perf-test.cfg for syntax errors.' |
| 518 print | 519 print |
| 519 return 1 | 520 return 1 |
| 520 | 521 |
| 521 | 522 |
| 522 if __name__ == '__main__': | 523 if __name__ == '__main__': |
| 523 sys.exit(main()) | 524 sys.exit(main()) |
| OLD | NEW |