FAFT: Check the status before stopping update-engine
Some tests suspend DUT and reuse the reboot path to reconnect DUT again.
As a result, it stops update-engine again which is already stopped. This
double-stop causes failure as it reports non-zero return code.
So this CL checks the status before stopping update-engine.
BUG=chrome-os-partner:21235
TEST=Run the test reuse reboot path for suspend, e.g. firmware_DevModeStress.
Change-Id: Iba38650b8bdd516d7e8ceb6b6b0494406e30dccf
Reviewed-on: https://gerrit.chromium.org/gerrit/62959
Reviewed-by: Vic Yang <victoryang@chromium.org>
Commit-Queue: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
1 file changed