Index: build/android/pylib/monkey/test_runner.py |
diff --git a/build/android/pylib/monkey/test_runner.py b/build/android/pylib/monkey/test_runner.py |
index 6db9ea9dfc3516e5ff169c18771ddf254d960265..34ac22565b9239b180891a4d07b40b07a65d8377 100644 |
--- a/build/android/pylib/monkey/test_runner.py |
+++ b/build/android/pylib/monkey/test_runner.py |
@@ -67,7 +67,8 @@ class TestRunner(base_test_runner.BaseTestRunner): |
or after_pids[0] != before_pids[0]) |
results = base_test_result.TestRunResults() |
- if 'Monkey finished' in output and not crashed: |
+ success_pattern = 'Events injected: %d' % self.options.event_count |
+ if success_pattern in output and not crashed: |
result = base_test_result.BaseTestResult( |
test_name, base_test_result.ResultType.PASS, log=output) |
else: |