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

Unified Diff: build/android/pylib/python_test_caller.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_base.py ('k') | build/android/pylib/python_test_sharder.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/python_test_caller.py
diff --git a/build/android/pylib/python_test_caller.py b/build/android/pylib/python_test_caller.py
index 2cc5d7c22bc3e38e8af3ac54ca1ec9379021bc66..882b8929976a9571f33196f79e1eda2f7eadcbf8 100644
--- a/build/android/pylib/python_test_caller.py
+++ b/build/android/pylib/python_test_caller.py
@@ -12,7 +12,7 @@ import time
from test_result import TestResults
-def CallPythonTest(test, device_id, shard_index):
+def CallPythonTest(test, options):
"""Invokes a test function and translates Python exceptions into test results.
This method invokes SetUp()/TearDown() on the test. It is intended to be
@@ -32,8 +32,7 @@ def CallPythonTest(test, device_id, shard_index):
Args:
test: an object which is ostensibly a subclass of PythonTestBase.
- device_id: device ID against which the test will run.
- shard_index: index # of the shard on which this test is running
+ options: Options to use for setting up tests.
Returns:
A TestResults object which contains any results produced by the test or, in
@@ -44,7 +43,7 @@ def CallPythonTest(test, device_id, shard_index):
failed = False
try:
- test.SetUp(device_id, shard_index)
+ test.SetUp(options)
except Exception:
failed = True
logging.exception(
« no previous file with comments | « build/android/pylib/python_test_base.py ('k') | build/android/pylib/python_test_sharder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698