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

Unified Diff: build/android/pylib/run_python_tests.py

Issue 10917283: Upstream changes to python tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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 | « build/android/pylib/python_test_sharder.py ('k') | build/android/pylib/test_options_parser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/run_python_tests.py
diff --git a/build/android/pylib/run_python_tests.py b/build/android/pylib/run_python_tests.py
index 0fc1245d2e47d982774887ab6e459b908bc36501..7d39f482958003aa30571783eee7a39e0107c820 100644
--- a/build/android/pylib/run_python_tests.py
+++ b/build/android/pylib/run_python_tests.py
@@ -95,29 +95,12 @@ def DispatchPythonTests(options):
'using first available device')
attached_devices = attached_devices[:1]
logging.debug('Running Python tests')
- sharder = PythonTestSharder(attached_devices, options.shard_retries,
- available_tests)
+ sharder = PythonTestSharder(attached_devices, available_tests, options)
test_results = sharder.RunShardedTests()
return test_results
-def _RunPythonTests(tests_to_run, device_id):
- """Runs a list of Python tests serially on one device and returns results.
-
- Args:
- tests_to_run: a list of objects inheriting from PythonTestBase.
- device_id: ID of the device to run tests on.
-
- Returns:
- A list of test results, aggregated across all the tests run.
- """
- # This is a list of TestResults objects.
- results = [CallPythonTest(t, device_id, 0) for t in tests_to_run]
- # Merge the list of TestResults into one TestResults.
- return TestResults.FromTestResults(results)
-
-
def _GetTestModules(python_test_root, is_official_build):
"""Retrieve a sorted list of pythonDrivenTests.
« no previous file with comments | « build/android/pylib/python_test_sharder.py ('k') | build/android/pylib/test_options_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698