From e7088743dfdfddd2eabc44e98ebf5005103fdc96 Mon Sep 17 00:00:00 2001 From: Chen Peng1 Date: Tue, 12 Jul 2022 10:43:36 +0800 Subject: [PATCH] scripts: twister: only load connected hardwares. only load hardwares with connected is true in hardware map files. Signed-off-by: Chen Peng1 --- scripts/pylib/twister/twisterlib/hardwaremap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/pylib/twister/twisterlib/hardwaremap.py b/scripts/pylib/twister/twisterlib/hardwaremap.py index 53f7b0c0a7..ec980771f6 100644 --- a/scripts/pylib/twister/twisterlib/hardwaremap.py +++ b/scripts/pylib/twister/twisterlib/hardwaremap.py @@ -224,6 +224,8 @@ class HardwareMap: product = dut.get('product') fixtures = dut.get('fixtures', []) connected= dut.get('connected') and ((serial or serial_pty) is not None) + if not connected: + continue new_dut = DUT(platform=platform, product=product, runner=runner,