summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2020-10-06 15:45:19 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2020-10-19 16:53:18 +0200
commitd2bdad28d1d1ad337a6c876c235797dbf6907886 (patch)
tree6525cfb37d1baa95bb07a053735252bbe7f63e22
parentb50134dc14296bf9bee96f3b4021ba5b123d54c9 (diff)
downloadlvm2-d2bdad28d1d1ad337a6c876c235797dbf6907886.tar.gz
tests: extend area covered by error target
Since 'BLKZEROOUT' streams out more block at once, at can easily zero-out larger set of blocks after 1st. failing one. So the test is adapted to fully 'hide' swap header under error target.
-rw-r--r--test/shell/lvcreate-signature-wiping.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/shell/lvcreate-signature-wiping.sh b/test/shell/lvcreate-signature-wiping.sh
index 18d7a2f7e..4893d9a66 100644
--- a/test/shell/lvcreate-signature-wiping.sh
+++ b/test/shell/lvcreate-signature-wiping.sh
@@ -43,7 +43,7 @@ test_blkid_ || skip
lvremove -f $vg/$lv1
# Zeroing stops the command when there is a failure (write error in this case)
-aux error_dev "$dev1" "$(get first_extent_sector "$dev1"):2"
+aux error_dev "$dev1" "$(get first_extent_sector "$dev1"):8"
not lvcreate -l1 -n $lv1 $vg 2>&1 | tee out
grep "Failed to initialize" out
aux enable_dev "$dev1"