TEST-64-UDEV-STORAGE: Make nvme_subsystem expected pci symlinks more generic
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 28 Jun 2024 12:20:34 +0000 (14:20 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 5 Jul 2024 18:00:04 +0000 (20:00 +0200)
commitdc0167b674bc6b555c25f374719c818bc6ad1416
tree8d3f8f901245b38cc0f889304a898b0e5248fbeb
parentfb747bd8cdcbeb55f9ef3c62289fff8ff5a25b68
TEST-64-UDEV-STORAGE: Make nvme_subsystem expected pci symlinks more generic

When running the test on aarch64 the symlinks look as follows:

"""
[root@H ~]# ls /dev/disk/by-path
platform-4010000000.pcie-pci-0000:00:04.0-scsi-0:0:0:0       platform-4010000000.pcie-pci-0000:00:04.0-scsi-0:0:0:0-part1  platform-4010000000.pcie-pci-0000:00:05.0-nvme-16
platform-4010000000.pcie-pci-0000:00:04.0-scsi-0:0:0:0-part  platform-4010000000.pcie-pci-0000:00:04.0-scsi-0:0:0:0-part2  platform-4010000000.pcie-pci-0000:00:05.0-nvme-17
"""

So let's make the PCI patterns a little more generic so they match
both the x86 and the aarch64 paths.

(cherry picked from commit 72d121b60174b825bf1390958eb1b55f34c5ff5b)
test/units/TEST-64-UDEV-STORAGE.sh