From 443afd421a8ba0ea9be4371f925d0275dd22dd3f Mon Sep 17 00:00:00 2001 From: Armin Kessler Date: Tue, 3 Dec 2024 13:08:39 +0100 Subject: [PATCH] scripts: twister: add esp32 runner Adds support for the `esp32` runner when using the hardware-map feature. Signed-off-by: Armin Kessler --- scripts/pylib/twister/twisterlib/handlers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/pylib/twister/twisterlib/handlers.py b/scripts/pylib/twister/twisterlib/handlers.py index c67ec07349a..72aaf796203 100755 --- a/scripts/pylib/twister/twisterlib/handlers.py +++ b/scripts/pylib/twister/twisterlib/handlers.py @@ -566,10 +566,14 @@ class DeviceHandler(Handler): board_id = hardware.probe_id or hardware.id product = hardware.product + serial_port = hardware.serial if board_id is not None: if runner in ("pyocd", "nrfjprog", "nrfutil"): command_extra_args.append("--dev-id") command_extra_args.append(board_id) + elif runner == "esp32": + command_extra_args.append("--esp-device") + command_extra_args.append(serial_port) elif ( runner == "openocd" and product == "STM32 STLink"