test: skip TEST-84-STORAGETM if running with bugged libnvme
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 14 Nov 2024 16:19:25 +0000 (16:19 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 14 Nov 2024 18:10:26 +0000 (18:10 +0000)
commitd8ec2770b7bb6ba9f7e3c31cb8094a2983139952
tree47d945ff30a83637c17a5cc8119879e2487478b3
parent04ee5e25a1082d4c6c0c52a154d5ad5fc959a853
test: skip TEST-84-STORAGETM if running with bugged libnvme

libnvme 1.11 appears to require a kernel built with NVME TLS
kconfigs, and fails hard if it is not, as the expected
privileged keyring '.nvme' is not present. We cannot just
create it from userspace, as privileged keyrings can only
be created by the kernel itself (those starting with '.').

Skip the test if the library exactly matches this version.

https://github.com/linux-nvme/nvme-cli/issues/2573

Fixes https://github.com/systemd/systemd/issues/35130

(cherry picked from commit 893aa45886ef84b1827445dc438e410ad89fbbbf)
test/units/TEST-84-STORAGETM.sh