diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-08-30 13:28:36 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-08-31 11:13:59 +0200 |
commit | 3a4267ade462e9066fbe70076da0eff679b3cdb6 (patch) | |
tree | bed0d9a7ab5598cda15020776fad685f1000c5a0 | |
parent | b26604c8d84a189fc3ee276d6e8711a49eecd831 (diff) | |
download | lvm2-3a4267ade462e9066fbe70076da0eff679b3cdb6.tar.gz |
tests: skip test for older cache target
Some test on older can targets are not going to work, and
since there is no other fix then using newer kernel - skip
such tests completely.
-rw-r--r-- | test/shell/lvconvert-cache-chunks.sh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/shell/lvconvert-cache-chunks.sh b/test/shell/lvconvert-cache-chunks.sh index 806db0f42..4631e0e7e 100644 --- a/test/shell/lvconvert-cache-chunks.sh +++ b/test/shell/lvconvert-cache-chunks.sh @@ -10,6 +10,7 @@ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Exercise number of cache chunks in cache pool +# Skips creation of real cached device for older cache targets... SKIP_WITH_LVMLOCKD=1 SKIP_WITH_LVMPOLLD=1 @@ -34,8 +35,11 @@ lvcreate -L1M -n $lv1 $vg # Not let pass small chunks when caching origin fail lvconvert -H --chunksize 128K --cachepool $vg/cpool $vg/$lv1 -# Though 2M is valid -lvconvert -y -H --chunksize 2M --cachepool $vg/cpool $vg/$lv1 +# Thought 2M is valid +if aux have_cache 1 8 0 ; then + # Without SMQ we run out of kernel memory easily + lvconvert -y -H --chunksize 2M --cachepool $vg/cpool $vg/$lv1 +fi lvremove -f $vg @@ -46,8 +50,10 @@ lvcreate -L1T -n cpool $vg # Not allowed to create more then 10e6 chunks fail lvconvert -y --type cache-pool --chunksize 128K $vg/cpool -# Let operation pass when max_chunk limit is raised -lvconvert -y --type cache-pool --chunksize 128K $vg/cpool \ - --config 'allocation/cache_pool_max_chunks=10000000' +if aux have_cache 1 8 0 ; then + # Let operation pass when max_chunk limit is raised + lvconvert -y --type cache-pool --chunksize 128K $vg/cpool \ + --config 'allocation/cache_pool_max_chunks=10000000' +fi vgremove -f $vg |