]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: lower the # of mpath devices to 16
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 25 Aug 2022 10:57:42 +0000 (12:57 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 26 Aug 2022 13:40:34 +0000 (15:40 +0200)
to make the test suitable for slower machines.

test/TEST-64-UDEV-STORAGE/test.sh
test/units/testsuite-64.sh

index fe8043430933ab9d150f5e0c55cb975f7871d07e..36c2dcd51b9181a9f5a11735670ed4ebaefb385b 100755 (executable)
@@ -286,8 +286,8 @@ EOF
     mkfs.ext4 -U "deadbeef-dead-dead-beef-111111111111" -L "failover_vol" "${lodev}p2"
     losetup -d "$lodev"
 
-    # Add 64 multipath devices, each backed by 4 paths
-    for ndisk in {0..63}; do
+    # Add 16 multipath devices, each backed by 4 paths
+    for ndisk in {0..15}; do
         wwn="0xDEADDEADBEEF$(printf "%.4d" "$ndisk")"
         # Use a partitioned disk for the first device to test failover
         [[ $ndisk -eq 0 ]] && image="$partdisk" || image="${TESTDIR:?}/disk$ndisk.img"
index 05a012b2b128ab9942816cf3fb08901514616511..61fed6648c916db399a1585d068f9d70f2774b7e 100755 (executable)
@@ -82,7 +82,7 @@ EOF
     udevadm settle
     ls -l /dev/disk/by-id/
 
-    for i in {0..63}; do
+    for i in {0..15}; do
         wwid="deaddeadbeef$(printf "%.4d" "$i")"
         path="/dev/disk/by-id/wwn-0x$wwid"
         dmpath="$(readlink -f "$path")"