• Kirill Smelkov's avatar
    X neotest: info-local: Fix NIC display for virtio devices · f2beeb95
    Kirill Smelkov authored
    For virtio NICs /sys/class/net/<NIC>/device lead to $pcidev/virtioX, not just $pcidev, e.g.:
    
    	$ realpath /sys/class/net/ens3/device
    	/sys/devices/pci0000:00/0000:00:03.0/virtio0
    
    and we were extracting virtio0 instead of 0000:00:03.0 as PCI device identifier.
    
    -> Fix it by recognizing and stripping /virtioX suffix.
    f2beeb95
neotest 40.2 KB