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

Unified Diff: Tools/Scripts/webkitpy/test/main.py

Issue 458643003: Remove serial test support from test-webkitpy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove flaky error code check in all cases Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Tools/Scripts/webkitpy/test/main.py
diff --git a/Tools/Scripts/webkitpy/test/main.py b/Tools/Scripts/webkitpy/test/main.py
index a5b675e93cedac8ccb2fa7e8758fb44e81b4b549..4b2472e1910a7089e5051bf4249e8a30d86618cb 100644
--- a/Tools/Scripts/webkitpy/test/main.py
+++ b/Tools/Scripts/webkitpy/test/main.py
@@ -167,14 +167,13 @@ class Tester(object):
self.printer.write_update("Finding the individual test methods ...")
loader = _Loader()
- parallel_tests, serial_tests = self._test_names(loader, names)
+ parallel_tests = self._test_names(loader, names)
self.printer.write_update("Running the tests ...")
- self.printer.num_tests = len(parallel_tests) + len(serial_tests)
+ self.printer.num_tests = len(parallel_tests)
start = time.time()
test_runner = Runner(self.printer, loader, self.webkit_finder)
test_runner.run(parallel_tests, self._options.child_processes)
- test_runner.run(serial_tests, 1)
self.printer.print_result(time.time() - start)
@@ -196,27 +195,15 @@ class Tester(object):
def _test_names(self, loader, names):
parallel_test_method_prefixes = ['test_']
- serial_test_method_prefixes = ['serial_test_']
if self._options.integration_tests:
parallel_test_method_prefixes.append('integration_test_')
- serial_test_method_prefixes.append('serial_integration_test_')
parallel_tests = []
loader.test_method_prefixes = parallel_test_method_prefixes
for name in names:
parallel_tests.extend(self._all_test_names(loader.loadTestsFromName(name, None)))
- serial_tests = []
- loader.test_method_prefixes = serial_test_method_prefixes
- for name in names:
- serial_tests.extend(self._all_test_names(loader.loadTestsFromName(name, None)))
-
- # loader.loadTestsFromName() will not verify that names begin with one of the test_method_prefixes
- # if the names were explicitly provided (e.g., MainTest.test_basic), so this means that any individual
- # tests will be included in both parallel_tests and serial_tests, and we need to de-dup them.
- serial_tests = list(set(serial_tests).difference(set(parallel_tests)))
-
- return (parallel_tests, serial_tests)
+ return parallel_tests
def _all_test_names(self, suite):
names = []
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/port/android_unittest.py ('k') | Tools/Scripts/webkitpy/test/main_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698