in removable_storage_test
269 if (pci_slot_name == 270 udev_device.get_property('DEVPATH').split('/')[3]):
for unknown reasons, the DEVPATH pci slot looks like, for example from the comment #1
E: DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:08:00.0 ...... E: DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:08:00.0/usb4/4-4/4-4:1.0/host19/target19:0:0/19:0:0:0/block/sdb
namely, the parser should be sth. like udev_device.get_property('DEVPATH').split('/')[4]
to get the right pci slot to compare.
----
NEXT: figure out how the hierarchy was decided and how to integrate the parsers, split('/')[3] and split('/')[4].
namely a smarter parser should be provided.
in removable_ storage_ test
269 if (pci_slot_name == get_property( 'DEVPATH' ).split( '/')[3] ):
270 udev_device.
for unknown reasons, the DEVPATH pci slot looks like, for example from the comment #1
E: DEVPATH= /devices/ pci0000: 00/0000: 00:1c.6/ 0000:08: 00.0 /devices/ pci0000: 00/0000: 00:1c.6/ 0000:08: 00.0/usb4/ 4-4/4-4: 1.0/host19/ target19: 0:0/19: 0:0:0/block/ sdb
......
E: DEVPATH=
namely, the parser should be sth. like device. get_property( 'DEVPATH' ).split( '/')[4]
udev_
to get the right pci slot to compare.
----
NEXT:
figure out how the hierarchy was decided and
how to integrate the parsers, split('/')[3] and split('/')[4].
namely a smarter parser should be provided.