From: Zdenek Kabelac Date: Thu, 13 Jul 2017 22:42:40 +0000 (+0200) Subject: tests: skip test for non dirty cache X-Git-Tag: v2_02_173~49 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=8a2448a4ed60deae8919e90edd6f4e94e450d19a;p=lvm2.git tests: skip test for non dirty cache Seems some cache LV can't be made dirty easily with older cache policy implementations.... --- diff --git a/test/shell/lvconvert-cache-abort.sh b/test/shell/lvconvert-cache-abort.sh index 701a41df1..e771947c2 100644 --- a/test/shell/lvconvert-cache-abort.sh +++ b/test/shell/lvconvert-cache-abort.sh @@ -40,7 +40,12 @@ done # Delay dev to ensure we have some time to 'capture' interrupt in flush aux delay_dev "$dev1" 100 0 "$(get first_extent_sector "$dev1"):" -lvdisplay --maps $vg +# TODO, how to make writeback cache dirty +test "$(get lv_field $vg/$lv1 cache_dirty_blocks)" -gt 0 || { + lvdisplay --maps $vg + skip "Cannot make a dirty writeback cache LV." +} + sync dd if=/dev/zero of="$DM_DEV_DIR/$vg/$lv1" bs=4k count=100 conv=fdatasync