faft-cr50: count timer_sof_calibration_overflow_int during cleanup
Boards like Nami have had usb issues that show up during different power
states. Count 'timer_sof_calibration_overflow_int' in the cr50 uart
output after each test to get more information about possible ccd usb
issues.
BUG=none
TEST=none
Change-Id: I19974e0f5c03ae8f4d792971abee59f9958702a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2013928
Reviewed-by: Dana Goyette <dgoyette@chromium.org>
Commit-Queue: Mary Ruthven <mruthven@chromium.org>
Tested-by: Mary Ruthven <mruthven@chromium.org>
diff --git a/server/cros/faft/cr50_test.py b/server/cros/faft/cr50_test.py
index cb56c6f..984dffa 100644
--- a/server/cros/faft/cr50_test.py
+++ b/server/cros/faft/cr50_test.py
@@ -58,6 +58,9 @@
# error during the flash operation. Just search for do_flash_op to simplify
# the search string and make it applicable to all flash op errors.
CR50_FLASH_OP_ERROR_MSG = 'do_flash_op'
+ # USB issues may show up with the timer sof calibration overflow interrupt.
+ # Count these during cleanup.
+ CR50_USB_ERROR = 'timer_sof_calibration_overflow_int'
def initialize(self, host, cmdline_args, full_args,
restore_cr50_image=False, restore_cr50_board_id=False,
@@ -504,13 +507,17 @@
return
flash_error_count = 0
+ usb_error_count = 0
with open(self.cr50_uart_file, 'r') as f:
for line in f:
if self.CR50_FLASH_OP_ERROR_MSG in line:
flash_error_count += 1
+ if self.CR50_USB_ERROR in line:
+ usb_error_count += 1
# Log any flash operation errors.
logging.info('do_flash_op count: %d', flash_error_count)
+ logging.info('usb error count: %d', usb_error_count)
def _try_to_bring_dut_up(self):