OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 """Runs the WebDriver Java acceptance tests. | 6 """Runs the WebDriver Java acceptance tests. |
7 | 7 |
8 This script is called from chrome/test/chromedriver/run_all_tests.py and reports | 8 This script is called from chrome/test/chromedriver/run_all_tests.py and reports |
9 results using the buildbot annotation scheme. | 9 results using the buildbot annotation scheme. |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 as Google C++ Test format. | 70 as Google C++ Test format. |
71 chromedriver_path: path to ChromeDriver exe. | 71 chromedriver_path: path to ChromeDriver exe. |
72 chrome_path: path to Chrome exe. | 72 chrome_path: path to Chrome exe. |
73 android_package: name of Chrome's Android package. | 73 android_package: name of Chrome's Android package. |
74 verbose: whether the output should be verbose. | 74 verbose: whether the output should be verbose. |
75 debug: whether the tests should wait until attached by a debugger. | 75 debug: whether the tests should wait until attached by a debugger. |
76 | 76 |
77 Returns: | 77 Returns: |
78 A list of |TestResult|s. | 78 A list of |TestResult|s. |
79 """ | 79 """ |
80 test_dir = util.MakeTempDir() + '1' | 80 test_dir = util.MakeTempDir() |
81 keystore_path = ('java', 'client', 'test', 'keystore') | 81 keystore_path = ('java', 'client', 'test', 'keystore') |
82 required_dirs = [keystore_path[:-1], | 82 required_dirs = [keystore_path[:-1], |
83 ('javascript',), | 83 ('javascript',), |
84 ('third_party', 'closure', 'goog'), | 84 ('third_party', 'closure', 'goog'), |
85 ('third_party', 'js')] | 85 ('third_party', 'js')] |
86 for required_dir in required_dirs: | 86 for required_dir in required_dirs: |
87 os.makedirs(os.path.join(test_dir, *required_dir)) | 87 os.makedirs(os.path.join(test_dir, *required_dir)) |
88 | 88 |
89 test_jar = 'test-standalone.jar' | 89 test_jar = 'test-standalone.jar' |
90 class_path = test_jar | 90 class_path = test_jar |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 android_package=options.android_package, | 287 android_package=options.android_package, |
288 verbose=options.verbose, | 288 verbose=options.verbose, |
289 debug=options.debug) | 289 debug=options.debug) |
290 return PrintTestResults(results) | 290 return PrintTestResults(results) |
291 finally: | 291 finally: |
292 environment.GlobalTearDown() | 292 environment.GlobalTearDown() |
293 | 293 |
294 | 294 |
295 if __name__ == '__main__': | 295 if __name__ == '__main__': |
296 sys.exit(main()) | 296 sys.exit(main()) |
OLD | NEW |