Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: chrome/test/chromedriver/run_java_tests.py

Issue 13901011: [chromedriver] Fix typo in temp directory path name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698