From 36bccbc4f3e3282dcd708b80b2954cb0d961bdb7 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 2 Oct 2023 22:42:36 +0200 Subject: [PATCH] tests: skip some tests on valgrind run Skip some tests that takes too much time with valgrind pass. --- test/shell/integrity-caching.sh | 1 + test/shell/integrity.sh | 1 + test/shell/lvconvert-mirror-basic.sh | 1 + test/shell/lvconvert-raid.sh | 1 + 4 files changed, 4 insertions(+) diff --git a/test/shell/integrity-caching.sh b/test/shell/integrity-caching.sh index 72fb4af4a..9d05068c8 100644 --- a/test/shell/integrity-caching.sh +++ b/test/shell/integrity-caching.sh @@ -14,6 +14,7 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest +test "${LVM_VALGRIND:-0}" -eq 0 || skip # too slow test for valgrind which mkfs.ext4 || skip which resize2fs || skip aux have_integrity 1 5 0 || skip diff --git a/test/shell/integrity.sh b/test/shell/integrity.sh index 61229c83a..940b5fde8 100644 --- a/test/shell/integrity.sh +++ b/test/shell/integrity.sh @@ -14,6 +14,7 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest +test "${LVM_VALGRIND:-0}" -eq 0 || skip # too slow test for valgrind which mkfs.ext4 || skip which resize2fs || skip aux have_integrity 1 5 0 || skip diff --git a/test/shell/lvconvert-mirror-basic.sh b/test/shell/lvconvert-mirror-basic.sh index 96d30d232..2ad9ccaf2 100644 --- a/test/shell/lvconvert-mirror-basic.sh +++ b/test/shell/lvconvert-mirror-basic.sh @@ -14,6 +14,7 @@ . lib/inittest +test "${LVM_VALGRIND:-0}" -eq 0 || skip # too slow test for valgrind aux lvmconf "global/support_mirrored_mirror_log=1" log_name_to_count() { diff --git a/test/shell/lvconvert-raid.sh b/test/shell/lvconvert-raid.sh index 561d75e40..9176b9c47 100644 --- a/test/shell/lvconvert-raid.sh +++ b/test/shell/lvconvert-raid.sh @@ -16,6 +16,7 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest +test "${LVM_VALGRIND:-0}" -eq 0 || skip # too slow test for valgrind get_image_pvs() { local d local images=()