Raise error when servo fails to open/close the lid

Fail the test when opening/closing lid fails. Otherwise, it would
take more time to diagnose the problem when the error propagates to a
later stage (https://chromium-review.googlesource.com/#/c/269615/).

BUG=none
TEST=run display_LidCloseOpen on daisy

Change-Id: Ifca5d76f565502889a02dccc8cc0ed7ea94f0fb2
Reviewed-on: https://chromium-review.googlesource.com/270576
Reviewed-by: Tom Tam <waihong@google.com>
Tested-by: Yuli Huang <yuli@chromium.org>
Commit-Queue: Yuli Huang <yuli@chromium.org>
2 files changed