Fix WK device detection to omit from HW-Diags
This commit is contained in:
parent
ba302f0c5b
commit
e642bfd2d3
1 changed files with 7 additions and 2 deletions
|
|
@ -1274,8 +1274,13 @@ def scan_disks(full_paths=False, only_path=None):
|
||||||
TESTS['iobenchmark']['Status'][d['name']] = 'Pending'
|
TESTS['iobenchmark']['Status'][d['name']] = 'Pending'
|
||||||
else:
|
else:
|
||||||
# Skip WizardKit devices
|
# Skip WizardKit devices
|
||||||
wk_label = '{}_LINUX'.format(KIT_NAME_SHORT)
|
skip_dev=False
|
||||||
if wk_label not in [c.get('label', '') for c in d.get('children', [])]:
|
wk_label_regex = r'{}_(LINUX|UFD)'.format(KIT_NAME_SHORT)
|
||||||
|
for c in d.get('children', []):
|
||||||
|
r = re.search(
|
||||||
|
wk_label_regex, c.get('label', ''), re.IGNORECASE)
|
||||||
|
skip_dev = bool(r)
|
||||||
|
if not skip_dev:
|
||||||
devs[d['name']] = {'lsblk': d}
|
devs[d['name']] = {'lsblk': d}
|
||||||
TESTS['NVMe/SMART']['Status'][d['name']] = 'Pending'
|
TESTS['NVMe/SMART']['Status'][d['name']] = 'Pending'
|
||||||
TESTS['badblocks']['Status'][d['name']] = 'Pending'
|
TESTS['badblocks']['Status'][d['name']] = 'Pending'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue