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:
parent
5b2b5dfec0
commit
4d41f54d08
1 changed files with 6 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue