twister: change serial option existence verification
Modify serial and serial_pty option availability verification in DTU object in device_is_available method to avoid situation when empty string passed as serial in hardware_map.yaml cause hang up Twister in this place. Fixes: #41169 Signed-off-by: Piotr Golyzniak <piotr.golyzniak@nordicsemi.no>
This commit is contained in:
parent
f474e5075e
commit
cdfa230131
1 changed files with 1 additions and 1 deletions
|
@ -726,7 +726,7 @@ class DeviceHandler(Handler):
|
|||
for d in self.suite.duts:
|
||||
if fixture and fixture not in d.fixtures:
|
||||
continue
|
||||
if d.platform != device or not (d.serial or d.serial_pty):
|
||||
if d.platform != device or (d.serial is None and d.serial_pty is None):
|
||||
continue
|
||||
d.lock.acquire()
|
||||
avail = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue