summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2019-12-10 13:35:08 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-28 22:10:02 +0000
commit74287ecd95007811031be01d219eeca42f82d168 (patch)
tree6ab86dd1232a7a808b71a4a3101ed6e4a5783f55
parent46ad4982f363f4f85aa0e6a7a15f63f4408695f6 (diff)
downloadchrome-ec-74287ecd95007811031be01d219eeca42f82d168.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> (cherry picked from commit 633bca2829532c6cad19cf49774a57f6baf8d1bf) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2080633 Reviewed-by: Namyoon Woo <namyoon@chromium.org>
-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]