]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: call nvme-cli with --hostnqn= instead of the deprecated --hostid=
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 31 Mar 2025 22:05:04 +0000 (23:05 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Apr 2025 02:36:58 +0000 (11:36 +0900)
Fixes https://github.com/systemd/systemd/issues/36908

test/units/TEST-84-STORAGETM.sh

index db281963b26dd033e26958432f0dc25cd668e408..0ae98a4c3205c7c764cfd10a821f5b5cdcc5fda5 100755 (executable)
@@ -24,7 +24,7 @@ NVME_UUID="$(cat /proc/sys/kernel/random/uuid)"
 systemd-run -u teststoragetm.service -p Type=notify -p "Environment=SYSTEMD_NVME_UUID=${NVME_UUID:?}" /usr/lib/systemd/systemd-storagetm /var/tmp/storagetm.test --nqn=quux
 NVME_DEVICE="/dev/disk/by-id/nvme-uuid.${NVME_UUID:?}"
 
-nvme connect-all -vv -t tcp -a 127.0.0.1 -s 16858 --hostid="$(cat /proc/sys/kernel/random/uuid)"
+nvme connect-all -vv -t tcp -a 127.0.0.1 -s 16858 --hostnqn="$(cat /proc/sys/kernel/random/uuid)"
 udevadm wait --settle "$NVME_DEVICE"
 
 dd if="$NVME_DEVICE" bs=1024 | cmp /var/tmp/storagetm.test -