Index: build/android/pylib/base/test_run_factory.py |
diff --git a/build/android/pylib/base/test_run_factory.py b/build/android/pylib/base/test_run_factory.py |
index 8db9bd633b249c7a980e52e690a2d0db08221979..e9494c3e7993bb736e789903bb5b062d3ef41c7f 100644 |
--- a/build/android/pylib/base/test_run_factory.py |
+++ b/build/android/pylib/base/test_run_factory.py |
@@ -7,6 +7,8 @@ from pylib.instrumentation import instrumentation_test_instance |
from pylib.local.device import local_device_environment |
from pylib.local.device import local_device_gtest_run |
from pylib.local.device import local_device_instrumentation_test_run |
+from pylib.local.device import local_device_perf_test_run |
+from pylib.perf import perf_test_instance |
from pylib.uirobot import uirobot_test_instance |
try: |
@@ -29,6 +31,10 @@ def CreateTestRun(_args, env, test_instance, error_func): |
instrumentation_test_instance.InstrumentationTestInstance): |
return (local_device_instrumentation_test_run |
.LocalDeviceInstrumentationTestRun(env, test_instance)) |
+ if isinstance(test_instance, |
+ perf_test_instance.PerfTestInstance): |
+ return (local_device_perf_test_run.LocalDevicePerfTestRun(env, |
mikecase (-- gone --)
2016/06/01 17:40:27
nit: the outer parenthesis arent necessary.
rnephew (Reviews Here)
2016/06/01 20:32:04
Done.
|
+ test_instance)) |
if (remote_device_environment |
and isinstance(env, remote_device_environment.RemoteDeviceEnvironment)): |