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 d706fd4159e5be64f549870ee532e9b05b4e301f..0d71e97fb2c0b1b985d591906269f4d1c065effb 100644 |
--- a/build/android/pylib/base/test_run_factory.py |
+++ b/build/android/pylib/base/test_run_factory.py |
@@ -5,9 +5,11 @@ |
from pylib.gtest import gtest_test_instance |
from pylib.instrumentation import instrumentation_test_instance |
from pylib.junit import junit_test_instance |
+from pylib.monkey import monkey_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_monkey_test_run |
from pylib.local.device import local_device_perf_test_run |
from pylib.local.machine import local_machine_environment |
from pylib.local.machine import local_machine_junit_test_run |
@@ -33,6 +35,9 @@ 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, monkey_test_instance.MonkeyTestInstance): |
+ return (local_device_monkey_test_run |
+ .LocalDeviceMonkeyTestRun(env, test_instance)) |
if isinstance(test_instance, |
perf_test_instance.PerfTestInstance): |
return _CreatePerfTestRun(args, env, test_instance) |