summaryrefslogtreecommitdiff
path: root/extra/cr50_rma_open
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2019-12-10 13:35:08 -0800
committerMary Ruthven <mruthven@chromium.org>2019-12-10 21:57:36 +0000
commit633bca2829532c6cad19cf49774a57f6baf8d1bf (patch)
tree33b93a3cc92d8d7d9383619397ff485c6168b8a2 /extra/cr50_rma_open
parent5f429581855f887a81be11804838449ca77f9672 (diff)
downloadchrome-ec-633bca2829532c6cad19cf49774a57f6baf8d1bf.tar.gz
cr50_rma_open: only disable timestamps with servod
cr50_rma_open can be run without servod. dut-control cr50_uart_timestamp:off fails if the script isn't running through servod. This change moves disabling timestamps, so it's only done on servod. BUG=none BRANCH=none TEST=run with and withoout servod Change-Id: Icc80d021dd7cbad8ae3632625b32b30368e5a94c Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1960919 Reviewed-by: Evan Green <evgreen@chromium.org>
Diffstat (limited to 'extra/cr50_rma_open')
-rwxr-xr-xextra/cr50_rma_open/cr50_rma_open.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/extra/cr50_rma_open/cr50_rma_open.py b/extra/cr50_rma_open/cr50_rma_open.py
index 920b21a77d..48b0880b22 100755
--- a/extra/cr50_rma_open/cr50_rma_open.py
+++ b/extra/cr50_rma_open/cr50_rma_open.py
@@ -165,7 +165,6 @@ class RMAOpen(object):
self.servo_port = servo_port if servo_port else '9999'
self.print_caps = print_caps
self.ip = ip
- self._dut_control('cr50_uart_timestamp:off')
if device:
self.set_cr50_device(device)
elif servo_port:
@@ -191,7 +190,11 @@ class RMAOpen(object):
def find_cr50_servo_uart(self):
- """Save the device used for the console"""
+ """Save the device used for the console.
+
+ Find the console and configure it, so it can be used with this script.
+ """
+ self._dut_control('cr50_uart_timestamp:off')
self.device = self._dut_control('cr50_uart_pty').split(':')[-1]