twister: fix hardware map generation
when generating a new map, set the status of the device and whether it is connected or now. The available key is runtime only and is not part of the map anymore. Adapt documentation and remove available as a key in the generated map. Fixes #35341 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
d915eb8252
commit
0e64b877da
2 changed files with 11 additions and 12 deletions
|
@ -4097,7 +4097,8 @@ class HardwareMap:
|
|||
id=d.serial_number,
|
||||
serial=persistent_map.get(d.device, d.device),
|
||||
product=d.product,
|
||||
runner='unknown')
|
||||
runner='unknown',
|
||||
connected=True)
|
||||
|
||||
for runner, _ in self.runner_mapping.items():
|
||||
products = self.runner_mapping.get(runner)
|
||||
|
@ -4166,7 +4167,8 @@ class HardwareMap:
|
|||
'id': id,
|
||||
'runner': runner,
|
||||
'serial': serial,
|
||||
'product': product
|
||||
'product': product,
|
||||
'connected': _connected.connected
|
||||
}
|
||||
dl.append(d)
|
||||
with open(hwm_file, 'w') as yaml_file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue