diff options
author | Andrea Grandi <agrandi@google.com> | 2022-07-14 22:32:52 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-15 00:09:52 +0000 |
commit | 6bbe76ff8b057d62f0f84dd2e9a36a7f525d25f0 (patch) | |
tree | 9237e135ee222115b3ede37bee1e351312ae3570 /test/run_device_tests.py | |
parent | 890b66539a63114179bcabee52f18d05fc5e2146 (diff) | |
download | chrome-ec-6bbe76ff8b057d62f0f84dd2e9a36a7f525d25f0.tar.gz |
run_device_tests: Error out when using remote servo_micro
The remote option only supports flashing with J-Link.
Add an explicit error message when user attempts to use a remote servo
micro to flash the EC.
BUG=none
TEST=./test/run_device_tests.py --flasher=servo_micro \
--remote=localhost --console_port=4567
=> Error message is printed
BRANCH=none
Signed-off-by: Andrea Grandi <agrandi@google.com>
Change-Id: Ib651ecaec88cb2b124a34b0d6fd0399912d3cbdc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3764642
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Commit-Queue: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'test/run_device_tests.py')
-rwxr-xr-x | test/run_device_tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/run_device_tests.py b/test/run_device_tests.py index 09f255f43e..7bde2b8a87 100755 --- a/test/run_device_tests.py +++ b/test/run_device_tests.py @@ -741,6 +741,13 @@ def main(): ) sys.exit(1) + if args.remote and args.flasher == SERVO_MICRO: + logging.error( + "The remote option is not supported when flashing with servo " + "micro. Use J-Link instead or flash with a local servo micro." + ) + sys.exit(1) + if args.board not in BOARD_CONFIGS: logging.error('Unable to find a config for board: "%s"', args.board) sys.exit(1) |