twister: support generate hardware map on windows

On windows, some board manufacturers have name that is "Microsoft"
instead of real its name. Need add it to manufacturer list.
Product information is missing. we can assign it "unknown" and
then add missing informations  by hand.

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
This commit is contained in:
Cong Nguyen Huu 2022-08-02 09:17:48 +07:00 committed by Anas Nashif
commit 4d41f54d08

View file

@ -117,7 +117,8 @@ class HardwareMap:
'NXP Semiconductors',
'Microchip Technology Inc.',
'FTDI',
'Digilent'
'Digilent',
'Microsoft'
]
runner_mapping = {
@ -276,6 +277,10 @@ class HardwareMap:
# assume endpoint 0 is the serial, skip all others
if d.manufacturer == 'Texas Instruments' and not d.location.endswith('0'):
continue
if d.product is None:
d.product = 'unknown'
s_dev = DUT(platform="unknown",
id=d.serial_number,
serial=persistent_map.get(d.device, d.device),