summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2022-01-18 12:15:03 -0600
committerDavid Teigland <teigland@redhat.com>2022-01-18 12:15:03 -0600
commitde7892f0af275615d2db0c7e6a4bbc56cd4962e8 (patch)
tree93606cea8eb3a2071f81a86e16f4059048a6ca79 /test
parenta972d63c547dc9699c0b3664175eb96b5d89ff8f (diff)
downloadlvm2-de7892f0af275615d2db0c7e6a4bbc56cd4962e8.tar.gz
Revert "pvcreate: overwrite partition header with -f"
This reverts commit d5a950ca67c106403054ecb847e226e8b5a7c30e. This commit did not properly recognize GPT cases.
Diffstat (limited to 'test')
-rw-r--r--test/shell/test-partition.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/test/shell/test-partition.sh b/test/shell/test-partition.sh
index 3a45f9089..0e92f00db 100644
--- a/test/shell/test-partition.sh
+++ b/test/shell/test-partition.sh
@@ -16,6 +16,7 @@
#
+
SKIP_WITH_LVMPOLLD=1
LVM_TEST_CONFIG_DEVICES="types = [\"device-mapper\", 142]"
@@ -24,7 +25,7 @@ LVM_TEST_CONFIG_DEVICES="types = [\"device-mapper\", 142]"
which sfdisk || skip
-aux prepare_pvs 2 30
+aux prepare_pvs 1 30
pvs "$dev1"
@@ -32,12 +33,3 @@ pvs "$dev1"
echo "1 2" | sfdisk --force "$dev1"
not pvs "$dev1"
-
-wipefs -a "$dev2"
-echo "1 2" | sfdisk --force "$dev2"
-partprobe
-not pvcreate "$dev2"
-pvcreate -f "$dev2"
-pvs "$dev2"
-pvremove "$dev2"
-