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

Unified Diff: chrome/test/chromedriver/run_py_tests.py

Issue 11830030: [chromedriver]Fix error in pyauto bots run. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/run_py_tests.py
diff --git a/chrome/test/chromedriver/run_py_tests.py b/chrome/test/chromedriver/run_py_tests.py
index 0f3bb5140be5d56d5d9bcee2740b3cc4a9ed8000..4d2446849c454cbcb39439d3b8d4b09c7e1f06ec 100755
--- a/chrome/test/chromedriver/run_py_tests.py
+++ b/chrome/test/chromedriver/run_py_tests.py
@@ -24,13 +24,14 @@ from common import unittest_util
class ChromeDriverTest(unittest.TestCase):
"""End to end tests for ChromeDriver."""
- @classmethod
- def setUpClass(cls):
- cls._http_server = webserver.WebServer(chrome_paths.GetTestData())
+ @staticmethod
+ def GlobalSetUp():
+ ChromeDriverTest._http_server = webserver.WebServer(
+ chrome_paths.GetTestData())
- @classmethod
- def tearDownClass(cls):
- cls._http_server.Shutdown()
+ @staticmethod
+ def GlobalTearDown():
+ ChromeDriverTest._http_server.Shutdown()
@staticmethod
def GetHttpUrlForFile(file_path):
@@ -117,5 +118,7 @@ if __name__ == '__main__':
all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule(
sys.modules[__name__])
tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter)
+ ChromeDriverTest.GlobalSetUp();
result = unittest.TextTestRunner().run(tests)
+ ChromeDriverTest.GlobalTearDown();
sys.exit(len(result.failures) + len(result.errors))
« 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