]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: replace deprecated --hostid= with --hostnqn=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Apr 2025 10:00:50 +0000 (19:00 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 8 Apr 2025 19:52:11 +0000 (20:52 +0100)
Fixes #36908.

(cherry picked from commit c70a113a6c2b02f667498c8385bedd1a873edb2c)
(cherry picked from commit c4eeb99c2192e9318566d045af985712dfd3d02c)

test/units/TEST-84-STORAGETM.sh

index 89de11318600017f44a1ee3833106d6d8777c22d..ddc107560e8fd3d740ec1b25e075ba3d82a4af0b 100755 (executable)
@@ -22,7 +22,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 -