From 62888e9c7692443066e90494764791753277f02e Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 21 Jan 2020 16:49:53 +0100 Subject: [PATCH] tests: skip test when dm-delay is not available --- test/shell/pv-corruption.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/shell/pv-corruption.sh b/test/shell/pv-corruption.sh index 3958ee1fb..b3c5059bd 100644 --- a/test/shell/pv-corruption.sh +++ b/test/shell/pv-corruption.sh @@ -17,6 +17,10 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest +# skip test early if there is no 'delay' target available +aux target_at_least dm-delay 1 1 0 || skip "missing dm-delay target" +touch HAVE_DM_DELAY + # # Main #