From 5fa09f3889b8476e5c34df1d363b514dec0738fe Mon Sep 17 00:00:00 2001 From: Andrea Grandi Date: Mon, 28 Nov 2022 11:54:06 -0800 Subject: test: Fix TypeError in run_device_tests.py BUG=b:260607990 TEST=run_device_tests.py --help BRANCH=none Signed-off-by: Andrea Grandi Change-Id: I51166b553497a20e2ba8743d2da682768a3d2cd6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4062572 Reviewed-by: Tom Hughes Code-Coverage: Zoss --- test/run_device_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/run_device_tests.py b/test/run_device_tests.py index 15f160a53b..8983a60b82 100755 --- a/test/run_device_tests.py +++ b/test/run_device_tests.py @@ -397,7 +397,7 @@ def read_file_gsutil(path: str) -> bytes: return gsutil.stdout -def find_section_offset_size(section: str, image: bytes) -> Tuple(int, int): +def find_section_offset_size(section: str, image: bytes) -> Tuple[int, int]: """Get offset and size of the section in image""" areas = fmap.fmap_decode(image)["areas"] area = next(area for area in areas if area["name"] == section) -- cgit v1.2.1