chrome_cr50: update gpioget expected output
The format of gpioget output has changed. Update the regex, so it works
with the new and old format.
BUG=none
BRANCH=none
TEST=run tests with TOT
Change-Id: I0a66ec7e1262dcde082072fa5881ff38fe12b8df
Signed-off-by: Mary Ruthven <mruthven@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/1285531
Tested-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Mary Ruthven <mruthven@chromium.org>
diff --git a/server/cros/servo/chrome_cr50.py b/server/cros/servo/chrome_cr50.py
index 91c41c7..df168a9 100644
--- a/server/cros/servo/chrome_cr50.py
+++ b/server/cros/servo/chrome_cr50.py
@@ -483,7 +483,7 @@
return self._servo.get('ccd_state') == 'on'
else:
result = self.send_command_retry_get_output('gpioget',
- ['(0|1)..CCD_MODE_L'])
+ ['(0|1)[ \S]*CCD_MODE_L'])
return not bool(int(result[0][1]))