Chromium Code Reviews| 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 3fd1797494db4f80b18d0690874fb005e685183a..0b5f1f82e26cd791c616c5885bcaa20d60436f51 100644 |
| --- a/build/android/pylib/monkey/test_runner.py |
| +++ b/build/android/pylib/monkey/test_runner.py |
| @@ -66,6 +66,10 @@ class TestRunner(base_test_runner.BaseTestRunner): |
| # Run the test. |
| output = '' |
| if before_pids: |
| + if len(before_pids[self._package]) > 1: |
|
jbudorick
2015/07/27 15:25:32
This should probably be before_pids.get(self._pack
Sami
2015/07/27 15:33:23
Done.
|
| + raise Exception( |
| + 'At most one instance of process %s expected but found pids: ' |
| + '%s' % (self._package, before_pids)) |
| output = '\n'.join(self._LaunchMonkeyTest()) |
| after_pids = self.device.GetPids(self._package) |