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 import collections | 6 import collections |
7 import glob | 7 import glob |
8 import hashlib | 8 import hashlib |
9 import json | 9 import json |
10 import os | 10 import os |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 args.append('--release') | 108 args.append('--release') |
109 if options.asan: | 109 if options.asan: |
110 args.append('--tool=asan') | 110 args.append('--tool=asan') |
111 if options.gtest_filter: | 111 if options.gtest_filter: |
112 args.append('--gtest-filter=%s' % options.gtest_filter) | 112 args.append('--gtest-filter=%s' % options.gtest_filter) |
113 for suite in suites: | 113 for suite in suites: |
114 bb_annotations.PrintNamedStep(suite) | 114 bb_annotations.PrintNamedStep(suite) |
115 cmd = ['build/android/test_runner.py', 'gtest', '-s', suite] + args | 115 cmd = ['build/android/test_runner.py', 'gtest', '-s', suite] + args |
116 if suite == 'content_browsertests': | 116 if suite == 'content_browsertests': |
117 cmd.append('--num_retries=1') | 117 cmd.append('--num_retries=1') |
118 elif suite == 'clank_unittests': | |
119 cmd += ['--isolate_file_path', | |
120 '"./clank/native/framework/clank_unittests.isolate"'] | |
jbudorick
2014/05/21 23:31:04
I don't think we want this hard-coded upstream (or
Kibeom Kim (inactive)
2014/05/21 23:41:24
options argument seems like a global option that i
| |
118 RunCmd(cmd) | 121 RunCmd(cmd) |
119 | 122 |
120 | 123 |
121 def RunChromeDriverTests(options): | 124 def RunChromeDriverTests(options): |
122 """Run all the steps for running chromedriver tests.""" | 125 """Run all the steps for running chromedriver tests.""" |
123 bb_annotations.PrintNamedStep('chromedriver_annotation') | 126 bb_annotations.PrintNamedStep('chromedriver_annotation') |
124 RunCmd(['chrome/test/chromedriver/run_buildbot_steps.py', | 127 RunCmd(['chrome/test/chromedriver/run_buildbot_steps.py', |
125 '--android-packages=%s,%s,%s,%s' % | 128 '--android-packages=%s,%s,%s,%s' % |
126 ('chrome_shell', | 129 ('chrome_shell', |
127 'chrome_stable', | 130 'chrome_stable', |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
651 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 654 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
652 if options.coverage_bucket: | 655 if options.coverage_bucket: |
653 setattr(options, 'coverage_dir', | 656 setattr(options, 'coverage_dir', |
654 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 657 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
655 | 658 |
656 MainTestWrapper(options) | 659 MainTestWrapper(options) |
657 | 660 |
658 | 661 |
659 if __name__ == '__main__': | 662 if __name__ == '__main__': |
660 sys.exit(main(sys.argv)) | 663 sys.exit(main(sys.argv)) |
OLD | NEW |