summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-02-08 22:27:59 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2021-02-08 23:43:38 +0100
commit6373f3909252e312ca2b25d42a46a712099ae7fc (patch)
treeafaa71ea66d4cd9679404f91d732324853a58593
parentb86eb913c18ca67415521b8003c04adf41a5496c (diff)
downloadlvm2-6373f3909252e312ca2b25d42a46a712099ae7fc.tar.gz
tests: check event_activation can be disabled
-rw-r--r--test/shell/pvscan-autoactivate.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/shell/pvscan-autoactivate.sh b/test/shell/pvscan-autoactivate.sh
index 9f7fc2ee7..153939d34 100644
--- a/test/shell/pvscan-autoactivate.sh
+++ b/test/shell/pvscan-autoactivate.sh
@@ -31,6 +31,10 @@ _clear_online_files() {
aux prepare_devs 8 16
+# Check 'pvscan' is ignored when event_activation is 0
+pvscan --cache -aay -v --config 'global/event_activation=0' 2>&1 | tee out
+grep "Ignoring pvscan" out
+
vgcreate $vg1 "$dev1" "$dev2"
lvcreate -n $lv1 -l 4 -a n $vg1