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:
parent
1d5c37ab96
commit
e7088743df
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue