]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: lower the number of iterations in LVM tests
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 18 Sep 2021 18:43:50 +0000 (20:43 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 18 Sep 2021 18:44:34 +0000 (20:44 +0200)
as some of the operations take a really long time.

test/units/testsuite-64.sh

index 1574d51401b29112d18b6faa36926d273a48618b..ffac49089e98be754bb8ad10ac12364a5af45483 100755 (executable)
@@ -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"