servo_repair: log typecstatus for each type c port
Some DUTS are stuck in the CR50_NOT_ENUMERATED state. Collect
information on the state of the type c ports, so its easy to check if
the cable is connected to the correct port.
BUG=b:232298472
TEST=none
Change-Id: I091954fe30a7fbec900fc8cb74d55a5f3a15fd96
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/labpack/+/3658249
Tested-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Otabek Kasimov <otabek@google.com>
Auto-Submit: Mary Ruthven <mruthven@chromium.org>
diff --git a/server/hosts/servo_repair.py b/server/hosts/servo_repair.py
index de9bec1..3eb34cf 100644
--- a/server/hosts/servo_repair.py
+++ b/server/hosts/servo_repair.py
@@ -628,6 +628,13 @@
@returns: bool
"""
+ logging.debug('Check the type-c status from the dut')
+ # Get some debug information about each type c port.
+ try:
+ logging.info(host.dut_run('ectool typecstatus 0', timeout=50))
+ logging.info(host.dut_run('ectool typecstatus 1', timeout=50))
+ except Exception as e:
+ logging.info('Ignoring typecstatus error %r', e)
logging.debug('Started check by ppdut5_mv:on')
try:
val = host.get_servo().get('ppdut5_mv')