Index: build/android/pylib/local/device/local_device_gtest_run.py |
diff --git a/build/android/pylib/local/device/local_device_gtest_run.py b/build/android/pylib/local/device/local_device_gtest_run.py |
index 0f360d4a9e943045c946f68689f98788fd2966e9..7d10f77ffa544b6432bb2b93f5701239c66fe549 100644 |
--- a/build/android/pylib/local/device/local_device_gtest_run.py |
+++ b/build/android/pylib/local/device/local_device_gtest_run.py |
@@ -229,9 +229,9 @@ class LocalDeviceGtestRun(local_device_test_run.LocalDeviceTestRun): |
tests = self._test_instance.FilterTests(tests) |
return tests |
+ # Query all devices in case one fails. |
test_lists = self._env.parallel_devices.pMap(list_tests).pGet(None) |
- tests = list(sorted(set().union(*[set(tl) for tl in test_lists if tl]))) |
- return tests |
+ return list(sorted(set().union(*[set(tl) for tl in test_lists if tl]))) |
#override |
def _RunTest(self, device, test): |