All of lore.kernel.org
 help / color / mirror / Atom feed
* main - tests: skip test part when missed in kernel
@ 2022-01-31 14:18 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2022-01-31 14:18 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=208af8db2afbf6941a7c71d8537e9ec3f60f4e79
Commit:        208af8db2afbf6941a7c71d8537e9ec3f60f4e79
Parent:        b36fce26a29cece9f3e11f081e9ac44c90a0ab0c
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Mon Jan 31 15:11:47 2022 +0100
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Mon Jan 31 15:11:47 2022 +0100

tests: skip test part when missed in kernel

---
 test/shell/profiles-cache.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/shell/profiles-cache.sh b/test/shell/profiles-cache.sh
index 60345fd61..b408130f4 100644
--- a/test/shell/profiles-cache.sh
+++ b/test/shell/profiles-cache.sh
@@ -62,10 +62,12 @@ EOF
 aux prepare_vg 2 1000000
 
 # Check writecache read data from profile
+if aux have_writecache 1 0 0 ; then
 lvcreate -n $lv1 -l 4 -an $vg "$dev1"
 lvcreate -y --type writecache -l 4 --cachevol $lv1 -n $lv2 --metadataprofile $PFILE $vg "$dev2"
 check lv_field $vg/$lv2 cachesettings "high_watermark=60"
 lvremove -y $vg
+fi
 
 # Check chunk_size is grabbed from configuration
 lvcreate -L1G --config 'allocation/cache_pool_chunk_size=512' --type cache-pool $vg/cpool



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-31 14:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-31 14:18 main - tests: skip test part when missed in kernel Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.