From dbc04797c1271f1486f124c5921265b6f80833da Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Sat, 18 Sep 2021 20:43:50 +0200 Subject: [PATCH] test: lower the number of iterations in LVM tests as some of the operations take a really long time. --- test/units/testsuite-64.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/units/testsuite-64.sh b/test/units/testsuite-64.sh index 1574d51401b..ffac49089e9 100755 --- a/test/units/testsuite-64.sh +++ b/test/units/testsuite-64.sh @@ -237,11 +237,11 @@ testcase_lvm_basic() { helper_check_device_symlinks "/dev/disk" "/dev/$vgroup" # Same as above, but now with more "stress" - for i in {1..100}; do + for i in {1..50}; do lvm vgchange -an "$vgroup" lvm vgchange -ay "$vgroup" - if ((i % 10 == 0)); then + if ((i % 5 == 0)); then udevadm settle test -e "/dev/$vgroup/mypart1" test -e "/dev/$vgroup/mypart2" @@ -258,7 +258,7 @@ testcase_lvm_basic() { helper_check_device_symlinks "/dev/disk" "/dev/$vgroup" # Create & remove LVs in a loop, i.e. with more "stress" - for i in {1..50}; do + for i in {1..16}; do # 1) Create 16 logical volumes for part in {0..15}; do lvm lvcreate -y -L 4M "$vgroup" -n "looppart$part" @@ -267,9 +267,9 @@ testcase_lvm_basic() { # 2) Immediately remove them lvm lvremove -y "$vgroup"/looppart{0..15} - # 3) On every 10th iteration settle udev and check if all partitions are + # 3) On every 4th iteration settle udev and check if all partitions are # indeed gone, and if all symlinks are still valid - if ((i % 10 == 0)); then + if ((i % 4 == 0)); then udevadm settle for part in {0..15}; do test ! -e "/dev/$vgroup/looppart$part" -- 2.47.3