diff options
Diffstat (limited to 'build/android/pylib/utils/test_environment.py')
-rw-r--r-- | build/android/pylib/utils/test_environment.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/build/android/pylib/utils/test_environment.py b/build/android/pylib/utils/test_environment.py index 4d88a45..f55a4ac 100644 --- a/build/android/pylib/utils/test_environment.py +++ b/build/android/pylib/utils/test_environment.py @@ -34,13 +34,14 @@ def CleanupLeftoverProcesses(): """Clean up the test environment, restarting fresh adb and HTTP daemons.""" _KillWebServers() device_utils.RestartServer() - p = device_utils.DeviceUtils.parallel() - p.old_interface.RestartAdbdOnDevice() - try: - p.EnableRoot() - except device_errors.CommandFailedError as e: - # TODO(jbudorick) Handle this exception appropriately after interface - # conversions are finished. - logging.error(str(e)) - p.WaitUntilFullyBooted() + + def cleanup_device(d): + d.RestartAdbd() + try: + d.EnableRoot() + except device_errors.CommandFailedError as e: + logging.error(str(e)) + d.WaitUntilFullyBooted() + + device_utils.DeviceUtils.parallel().pMap(cleanup_device) |