crostestutils: Make recover_duts reboot via powerd.

Update the recover_duts check_ethernet hook to first make a
RequestRestart D-Bus call to powerd before calling "reboot"
directly. The former makes it easier to see why we're
rebooting (since powerd logs the reason to its log).

BUG=chromium:805051
TEST=ran the subshell command with and without powerd and
     checked that the system reboots in both cases

Change-Id: I9a83cda6ced34690f1ecffa3e1d91678b33cd905
Reviewed-on: https://chromium-review.googlesource.com/894853
Commit-Ready: Dan Erat <derat@chromium.org>
Tested-by: Dan Erat <derat@chromium.org>
Reviewed-by: Grant Grundler <grundler@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
1 file changed