Test power manager fallback to shutdown if unable to suspend

This test prevents suspend of the system with the lid closed. In this
situtation, the power manager daemon will try to suspend and fail.
After enough failed tries the system is powered off to prevent
draining the battery.

BUG=none
TEST=run_remote_tests.sh power_SuspendShutdown [on link]
  - Normal run passes.
  - Fails without lid close (timeout waiting for poweroff).

Change-Id: I6317d0a63bd2e17f8921382f988d33f52a977a2b
Reviewed-on: https://gerrit.chromium.org/gerrit/39141
Reviewed-by: Jon Kliegman <kliegs@chromium.org>
Commit-Queue: Michael Spang <spang@chromium.org>
Tested-by: Michael Spang <spang@chromium.org>
2 files changed