Closed Bug 1045671 Opened 10 years ago Closed 7 years ago

Race condition in DeviceManagerADB.reboot

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ato, Unassigned)

Details

In DeviceManagerADB.reboot, the hypothesis is that it appears the shell out to `adb reboot` returns before the device has properly shut down and started rebooting.  This causes the next statement (`adb wait-for-device`) to return immediately.
It appears we need to wait somehow for the device to properly shut down before we can start calling `adb wait-for-device`, otherwise there's a chance this will detect the current device session.

In fxos-certsuite we circumvent the problem by wrapping the reboot function and sleeping for 20 seconds after calling it.  This seems to be reliable on the Inari, but possibly (?) not other devices with different hardware.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.