dev-next - tests: skip more tests for lvmpolld pass
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=49575a6ce1940528aaaac5eada8f8938e6cf4a84 Commit: 49575a6ce1940528aaaac5eada8f8938e6cf4a84 Parent: 7768650d87d4086a76f1558aab4436acda1b5e44 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Mar 26 16:05:28 2021 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Mar 26 20:39:40 2021 +0100
tests: skip more tests for lvmpolld pass
These test do not test polling, so skip them for lvmpolld pass.
--- test/api/dbustest.sh | 1 + test/shell/exported.sh | 2 ++ test/shell/lvm-conf-error.sh | 2 ++ test/shell/metadata-bad-mdaheader.sh | 2 ++ test/shell/metadata-bad-text.sh | 2 ++ test/shell/metadata-old.sh | 2 ++ test/shell/missing-pv-unused.sh | 13 +++---------- test/shell/missing-pv.sh | 9 +++------ test/shell/outdated-pv.sh | 8 +++----- test/shell/pvck-dump.sh | 3 +++ test/shell/pvck-repair.sh | 4 ++++ 11 files changed, 27 insertions(+), 21 deletions(-)
test/api/dbustest.sh +1 -0
@@ -11,6 +11,7 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMLOCKD=1 SKIP_WITH_CLVMD=1
test/shell/exported.sh +2 -0
@@ -10,6 +10,8 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +SKIP_WITH_LVMPOLLD=1 + . lib/inittest # Check what is and is not permitted on an exported VG/PV
test/shell/lvm-conf-error.sh +2 -0
@@ -12,6 +12,8 @@ # Check what happens when reading of lvm.conf fails +SKIP_WITH_LVMPOLLD=1 + . lib/inittest MKFS=mkfs.ext3
test/shell/metadata-bad-mdaheader.sh +2 -0
@@ -10,6 +10,8 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +SKIP_WITH_LVMPOLLD=1 + . lib/inittest xxd -v || skip
test/shell/metadata-bad-text.sh +2 -0
@@ -10,6 +10,8 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +SKIP_WITH_LVMPOLLD=1 + RUNDIR="/run" test -d "$RUNDIR" || RUNDIR="/var/run" PVS_ONLINE_DIR="$RUNDIR/lvm/pvs_online"
test/shell/metadata-old.sh +2 -0
@@ -10,6 +10,8 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +SKIP_WITH_LVMPOLLD=1 + . lib/inittest aux prepare_devs 3
test/shell/missing-pv-unused.sh +3 -10
@@ -10,12 +10,11 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -. lib/inittest +SKIP_WITH_LVMPOLLD=1 -aux prepare_devs 3 -get_devs +. lib/inittest -vgcreate $SHARED $vg "$dev1" "$dev2" "$dev3" +aux prepare_vg 3 lvcreate -n $lv1 -L8M $vg "$dev2" lvcreate -n $lv2 -L8M $vg "$dev3"
@@ -24,10 +23,6 @@ lvcreate -n $lv4 -L8M $vg "$dev3" vgchange -an $vg -pvs -vgs -lvs -a -o+devices - # Fail device that is not used by any LVs. aux disable_dev "$dev1"
@@ -81,6 +76,4 @@ pvs vgs lvs -a -o+devices -vgchange -an $vg vgremove -ff $vg -
test/shell/missing-pv.sh +3 -6
@@ -10,12 +10,11 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -. lib/inittest +SKIP_WITH_LVMPOLLD=1 -aux prepare_devs 3 -get_devs +. lib/inittest -vgcreate $SHARED $vg "$dev1" "$dev2" "$dev3" +aux prepare_vg 3 lvcreate -n $lv1 -L8M --type mirror -m 1 $vg lvcreate -n $lv2 -L8M --type mirror -m 1 $vg
@@ -147,6 +146,4 @@ pvs vgs lvs -a -o+devices -vgchange -an $vg vgremove -ff $vg -
test/shell/outdated-pv.sh +3 -5
@@ -10,10 +10,11 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +SKIP_WITH_LVMPOLLD=1 + . lib/inittest -aux prepare_devs 3 -get_devs +aux prepare_vg 3 # # Test handling of "outdated PV" which occurs when a PV goes missing
@@ -22,8 +23,6 @@ get_devs # member. That outdated metadata needs to be cleared. # -vgcreate $SHARED $vg "$dev1" "$dev2" "$dev3" - lvcreate -n $lv1 -l1 -an $vg "$dev1" lvcreate -n $lv2 -l1 -an $vg "$dev1"
@@ -63,4 +62,3 @@ pvs "$dev2" | tee out grep "$vg" out vgremove -ff $vg -
test/shell/pvck-dump.sh +3 -0
@@ -10,6 +10,9 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +SKIP_WITH_LVMPOLLD=1 +SKIP_WITH_LVMLOCKD=1 + . lib/inittest SIZE_MB=80
test/shell/pvck-repair.sh +4 -0
@@ -10,6 +10,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +SKIP_WITH_LVMPOLLD=1 +SKIP_WITH_LVMLOCKD=1 + + . lib/inittest SIZE=34