scripts: twister: only load connected hardwares.

only load hardwares with connected is true in
hardware map files.

Signed-off-by: Chen Peng1 <peng1.chen@intel.com>
This commit is contained in:
Chen Peng1 2022-07-12 10:43:36 +08:00 committed by Anas Nashif
parent 1d5c37ab96
commit e7088743df

View file

@ -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,