diff options
author | Tom Hughes <tomhughes@chromium.org> | 2020-05-29 15:37:29 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-16 02:11:59 +0000 |
commit | ac4562e9be368bca4ba00622a2ca2b2378e0decf (patch) | |
tree | 72b6a94753bb5348ea225262686c6b4a2212f950 /test/run_device_tests.py | |
parent | 64ec4195a99fc396ac5be5e4b93581e150b14ddd (diff) | |
download | chrome-ec-ac4562e9be368bca4ba00622a2ca2b2378e0decf.tar.gz |
test: Use arguments to determine which rollback region to test
BRANCH=none
BUG=b:155229277, b:151105339
TEST=With dragonclaw v0.2 connected to Segger J-Trace and servo micro:
./test/run_device_tests.py -t rollback_region0 rollback_region1
=> PASS
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Ibb0512d9ea3fa84334b5ba080243f6eef7031c4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2231724
Commit-Queue: Craig Hesling <hesling@chromium.org>
Reviewed-by: Craig Hesling <hesling@chromium.org>
Diffstat (limited to 'test/run_device_tests.py')
-rwxr-xr-x | test/run_device_tests.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/run_device_tests.py b/test/run_device_tests.py index be5e3b2395..3d9b71ea58 100755 --- a/test/run_device_tests.py +++ b/test/run_device_tests.py @@ -36,6 +36,8 @@ SINGLE_CHECK_FAILED_REGEX = re.compile(r'.*failed:.*') DATA_ACCESS_VIOLATION_8020000_REGEX = re.compile( r'Data access violation, mfar = 8020000\r\n') +DATA_ACCESS_VIOLATION_8040000_REGEX = re.compile( + r'Data access violation, mfar = 8040000\r\n') DATA_ACCESS_VIOLATION_20000000_REGEX = re.compile( r'Data access violation, mfar = 20000000\r\n') @@ -98,9 +100,14 @@ ALL_TESTS = { TestConfig(name='mutex'), 'pingpong': TestConfig(name='pingpong'), - 'rollback': + 'rollback_region0': TestConfig(name='rollback', finish_regexes=[ - DATA_ACCESS_VIOLATION_8020000_REGEX]), + DATA_ACCESS_VIOLATION_8020000_REGEX], + test_args=['region0']), + 'rollback_region1': + TestConfig(name='rollback', finish_regexes=[ + DATA_ACCESS_VIOLATION_8040000_REGEX], + test_args=['region1']), 'rollback_entropy': TestConfig(name='rollback_entropy', image_to_use=ImageType.RO), 'rtc': |