diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-05-01 14:45:47 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-05-01 15:07:58 +0200 |
commit | a3473e60db68a4d122f68dd66625ee35ac1021be (patch) | |
tree | 66c4bd8813b088fb5c5a972f00033b22668183f3 /test/shell | |
parent | dd4e6b4e7e1afc959f054732f5388b915f62ab18 (diff) | |
download | lvm2-a3473e60db68a4d122f68dd66625ee35ac1021be.tar.gz |
tests: no lvmetad reload for debugless output
Introduce LVM_TEST_LVMETAD_DEBUG_OPTS to allow to override
default debug opts for lvmetad.
However could be still overloaded on command line:
make check_lvmetad LVM_TEST_LVMETAD_DEBUG_OPTS="-l all"...
Diffstat (limited to 'test/shell')
-rw-r--r-- | test/shell/lvconvert-mirror-basic.sh | 6 | ||||
-rw-r--r-- | test/shell/lvconvert-mirror.sh | 6 | ||||
-rw-r--r-- | test/shell/lvconvert-raid.sh | 6 | ||||
-rw-r--r-- | test/shell/mirror-vgreduce-removemissing.sh | 6 | ||||
-rw-r--r-- | test/shell/process-each-lv.sh | 6 | ||||
-rw-r--r-- | test/shell/pvmove-basic.sh | 6 | ||||
-rw-r--r-- | test/shell/vgsplit-operation.sh | 6 |
7 files changed, 21 insertions, 21 deletions
diff --git a/test/shell/lvconvert-mirror-basic.sh b/test/shell/lvconvert-mirror-basic.sh index ce5b34494..4a3e62f44 100644 --- a/test/shell/lvconvert-mirror-basic.sh +++ b/test/shell/lvconvert-mirror-basic.sh @@ -9,6 +9,9 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# disable lvmetad logging as it bogs down test systems +export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-} + . lib/inittest log_name_to_count() { @@ -110,9 +113,6 @@ test_lvconvert() { fi } -# disable lvmetad logging as it bogs down test systems -test -e LOCAL_LVMETAD && aux prepare_lvmetad "" - aux prepare_pvs 5 5 vgcreate -s 32k $vg $(cat DEVICES) diff --git a/test/shell/lvconvert-mirror.sh b/test/shell/lvconvert-mirror.sh index 5dde9211e..844f8e945 100644 --- a/test/shell/lvconvert-mirror.sh +++ b/test/shell/lvconvert-mirror.sh @@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest - # disable lvmetad logging as it bogs down test systems -test -e LOCAL_LVMETAD && aux prepare_lvmetad "" +export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-} + +. lib/inittest aux prepare_pvs 5 10 # proper DEVRANGE needs to be set according to extent size diff --git a/test/shell/lvconvert-raid.sh b/test/shell/lvconvert-raid.sh index 34c94bf20..d3253eb0b 100644 --- a/test/shell/lvconvert-raid.sh +++ b/test/shell/lvconvert-raid.sh @@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest - # disable lvmetad logging as it bogs down test systems -test -e LOCAL_LVMETAD && aux prepare_lvmetad "" +export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-} + +. lib/inittest get_image_pvs() { local d diff --git a/test/shell/mirror-vgreduce-removemissing.sh b/test/shell/mirror-vgreduce-removemissing.sh index 88913696b..e4791f806 100644 --- a/test/shell/mirror-vgreduce-removemissing.sh +++ b/test/shell/mirror-vgreduce-removemissing.sh @@ -12,10 +12,10 @@ test_description="ensure that 'vgreduce --removemissing' works on mirrored LV" -. lib/inittest - # disable lvmetad logging as it bogs down test systems -test -e LOCAL_LVMETAD && aux prepare_lvmetad "" +export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-} + +. lib/inittest lv_is_on_ () { diff --git a/test/shell/process-each-lv.sh b/test/shell/process-each-lv.sh index 355e92edf..bd9e04243 100644 --- a/test/shell/process-each-lv.sh +++ b/test/shell/process-each-lv.sh @@ -11,10 +11,10 @@ test_description='Exercise toollib process_each_lv' -. lib/inittest - # disable lvmetad logging as it bogs down test systems -test -e LOCAL_LVMETAD && aux prepare_lvmetad "" +export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-} + +. lib/inittest aux prepare_devs 10 diff --git a/test/shell/pvmove-basic.sh b/test/shell/pvmove-basic.sh index f7830da80..42b004d9f 100644 --- a/test/shell/pvmove-basic.sh +++ b/test/shell/pvmove-basic.sh @@ -12,13 +12,13 @@ test_description="ensure that pvmove works with basic options" +# disable lvmetad logging as it bogs down test systems +export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-} + . lib/inittest which md5sum || skip -# disable lvmetad logging as it bogs down test systems -test -e LOCAL_LVMETAD && aux prepare_lvmetad "" - # --------------------------------------------------------------------- # Utilities diff --git a/test/shell/vgsplit-operation.sh b/test/shell/vgsplit-operation.sh index f2baafd45..91cdcdcb4 100644 --- a/test/shell/vgsplit-operation.sh +++ b/test/shell/vgsplit-operation.sh @@ -11,10 +11,10 @@ # Test vgsplit operation, including different LV types -. lib/inittest - # disable lvmetad logging as it bogs down test systems -test -e LOCAL_LVMETAD && aux prepare_lvmetad "" +export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-} + +. lib/inittest COMM() { LAST_TEST="$@" |