summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2020-10-08 17:01:50 -0700
committerCommit Bot <commit-bot@chromium.org>2020-10-09 23:43:56 +0000
commit063c4877b22199a9d1e0c70e2061e750f0fe7ad6 (patch)
tree2bfe72321dc07e1c7bcc324d859474aee149a157
parent19260e58511d3a2e6953be36930b410f129a33dc (diff)
downloadchrome-ec-063c4877b22199a9d1e0c70e2061e750f0fe7ad6.tar.gz
test/run_device_tests.py: Disable STM32F-specific test on icetower
Icetower is an STM32H743 device, so this test does not compile. BRANCH=none BUG=b:170432597 TEST=On Icetower v0.1 connected via servo_micro: ./test/run_device_tests.py -b dartmonkey Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: Iaff85c24649ee50101441c9a75c57bd10b605c51 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2462159 Reviewed-by: Yicheng Li <yichengli@chromium.org>
-rwxr-xr-xtest/run_device_tests.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/test/run_device_tests.py b/test/run_device_tests.py
index 9555984838..d8a5db5664 100755
--- a/test/run_device_tests.py
+++ b/test/run_device_tests.py
@@ -49,6 +49,9 @@ DATA_ACCESS_VIOLATION_80E0000_REGEX = re.compile(
DATA_ACCESS_VIOLATION_20000000_REGEX = re.compile(
r'Data access violation, mfar = 20000000\r\n')
+BLOONCHIPPER = 'bloonchipper'
+DARTMONKEY = 'dartmonkey'
+
class ImageType(Enum):
"""EC Image type to use for the test."""
@@ -59,8 +62,9 @@ class ImageType(Enum):
class BoardConfig:
"""Board-specific configuration."""
- def __init__(self, servo_uart_name, servo_power_enable,
+ def __init__(self, name, servo_uart_name, servo_power_enable,
rollback_region0_regex, rollback_region1_regex):
+ self.name = name
self.servo_uart_name = servo_uart_name
self.servo_power_enable = servo_power_enable
self.rollback_region0_regex = rollback_region0_regex
@@ -98,7 +102,7 @@ class AllTests:
@staticmethod
def get(board_config: BoardConfig):
- return {
+ tests = {
'aes':
TestConfig(name='aes'),
'crc32':
@@ -139,14 +143,18 @@ class AllTests:
TestConfig(name='sha256'),
'sha256_unrolled':
TestConfig(name='sha256_unrolled'),
- 'stm32f_rtc':
- TestConfig(name='stm32f_rtc'),
'utils':
TestConfig(name='utils', timeout_secs=20),
}
+ if board_config.name == BLOONCHIPPER:
+ tests['stm32f_rtc'] = TestConfig(name='stm32f_rtc')
+
+ return tests
+
BLOONCHIPPER_CONFIG = BoardConfig(
+ name=BLOONCHIPPER,
servo_uart_name='raw_fpmcu_uart_pty',
servo_power_enable='spi1_vref',
rollback_region0_regex=DATA_ACCESS_VIOLATION_8020000_REGEX,
@@ -154,6 +162,7 @@ BLOONCHIPPER_CONFIG = BoardConfig(
)
DARTMONKEY_CONFIG = BoardConfig(
+ name=DARTMONKEY,
servo_uart_name='raw_fpmcu_uart_pty',
servo_power_enable='spi1_vref',
rollback_region0_regex=DATA_ACCESS_VIOLATION_80C0000_REGEX,