]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: replace deprecated --hostid= with --hostnqn= 36927/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Apr 2025 10:00:50 +0000 (19:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Apr 2025 10:01:45 +0000 (19:01 +0900)
Fixes #36908.

test/units/TEST-84-STORAGETM.sh

index db281963b26dd033e26958432f0dc25cd668e408..3e286f45c0ac04d426bf7eebf126ae35e011a7cf 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="$(nvme gen-hostnqn)"
 udevadm wait --settle "$NVME_DEVICE"
 
 dd if="$NVME_DEVICE" bs=1024 | cmp /var/tmp/storagetm.test -