diff options
author | Bobby Casey <bobbycasey@google.com> | 2022-09-30 15:02:00 -0400 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-23 23:40:04 +0000 |
commit | a9f4d1e3b8ce901217a1b8730d7b66aa3a86449a (patch) | |
tree | 52a35f550d40f6ba3383f86e93df789be1e19b83 /test/run_device_tests.py | |
parent | 000e9d5229b4fb74ed8cc3b2989aac100db712d7 (diff) | |
download | chrome-ec-a9f4d1e3b8ce901217a1b8730d7b66aa3a86449a.tar.gz |
run_device_tests.py: Resolve error in type hint
Resolve the error in find_section_offset's type hint, it should be
Tuple(int, int) rather than (int, int)
BUG=b:250028913
TEST=./test/run_device_tests.py -b bloonchipper --flasher=servo_micro
BRANCH=none
Signed-off-by: Bobby Casey <bobbycasey@google.com>
Change-Id: I88e86b14efb0fc6f7a39d0c19c83a44d8eb0b975
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3931127
Reviewed-by: Andrea Grandi <agrandi@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'test/run_device_tests.py')
-rwxr-xr-x | test/run_device_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run_device_tests.py b/test/run_device_tests.py index fcf9a99651..15f160a53b 100755 --- a/test/run_device_tests.py +++ b/test/run_device_tests.py @@ -52,7 +52,7 @@ from concurrent.futures.thread import ThreadPoolExecutor from dataclasses import dataclass, field from enum import Enum from pathlib import Path -from typing import BinaryIO, Dict, List, Optional +from typing import BinaryIO, Dict, List, Optional, Tuple # pylint: disable=import-error import colorama # type: ignore[import] @@ -397,7 +397,7 @@ def read_file_gsutil(path: str) -> bytes: return gsutil.stdout -def find_section_offset_size(section: str, image: bytes) -> (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) |