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

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

Issue 22601006: [chromedriver] Restore test_expectations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/test/chromedriver/test/run_py_tests.py » ('j') | 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 2013 The Chromium Authors. All rights reserved. 2 # Copyright 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 """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
11 For ChromeDriver documentation, refer to http://code.google.com/p/chromedriver. 11 For ChromeDriver documentation, refer to http://code.google.com/p/chromedriver.
12 """ 12 """
13 13
14 import optparse 14 import optparse
15 import os 15 import os
16 import shutil 16 import shutil
17 import sys 17 import sys
18 import xml.dom.minidom as minidom 18 import xml.dom.minidom as minidom
19 19
20 _THIS_DIR = os.path.abspath(os.path.dirname(__file__)) 20 _THIS_DIR = os.path.abspath(os.path.dirname(__file__))
21 sys.path.insert(0, os.path.join(_THIS_DIR, os.pardir)) 21 sys.path.insert(1, os.path.join(_THIS_DIR, os.pardir))
frankf 2013/08/09 23:37:50 But what are these modules in the top-level instea
chrisgao (Use stgao instead) 2013/08/10 00:04:20 Yes, this solution is not perfect. It's just a wo
22 22
23 import chrome_paths 23 import chrome_paths
24 import test_environment 24 import test_environment
25 import util 25 import util
26 26
27 27
28 class TestResult(object): 28 class TestResult(object):
29 """A result for an attempted single test case.""" 29 """A result for an attempted single test case."""
30 30
31 def __init__(self, name, time, failure): 31 def __init__(self, name, time, failure):
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 android_package=options.android_package, 302 android_package=options.android_package,
303 verbose=options.verbose, 303 verbose=options.verbose,
304 debug=options.debug) 304 debug=options.debug)
305 return PrintTestResults(results) 305 return PrintTestResults(results)
306 finally: 306 finally:
307 environment.GlobalTearDown() 307 environment.GlobalTearDown()
308 308
309 309
310 if __name__ == '__main__': 310 if __name__ == '__main__':
311 sys.exit(main()) 311 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | chrome/test/chromedriver/test/run_py_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698