1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

TEST-64-UDEV-STORAGE: test for absence of obsolete NVMe symlink

Signed-off-by: Bryan Gurney <bgurney@redhat.com>
This commit is contained in:
Bryan Gurney 2024-10-15 10:22:07 -04:00
parent 8c009371cd
commit 21ba71f89b

View File

@ -219,6 +219,7 @@ testcase_nvme_basic() {
for i in "${expected_symlinks[@]}"; do
udevadm wait --settle --timeout=30 "$i"
done
test ! -e /dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_deadbeef
lsblk --noheadings | grep "^nvme"
[[ "$(lsblk --noheadings | grep -c "^nvme")" -ge 20 ]]