Skip to contentSkip to conversation

master - tests: more duplicate testing

PATCH Zdenek Kabelac 1 participant 1 message Apr 2, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=6d1c9a0eb814a7eca55c67cfd89bbf056c65f13e
Commit:        6d1c9a0eb814a7eca55c67cfd89bbf056c65f13e
Parent:        53ef14fca0e85fef0df41665a64d21166d8b684d
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Apr 2 12:42:56 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Apr 2 13:38:41 2015 +0200

tests: more duplicate testing

---
 test/shell/pv-duplicate.sh |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
test/shell/pv-duplicate.sh +13 -1
index ede9600..9b218e6 100644
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (C) 2011 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2011-2015 Red Hat, Inc. All rights reserved.
 #
 # This copyrighted material is made available to anyone wishing to use,
 # modify, copy, or redistribute it subject to the terms and conditions
@@ -15,6 +15,10 @@
 
 aux prepare_devs 3
 
+pvcreate "$dev1"
+
+dd if="$dev1" of=backup_dev1 bs=256K count=1
+
 vgcreate --metadatasize 128k $vg1 "$dev1"
 
 # copy mda
@@ -22,4 +26,12 @@ dd if="$dev1" of="$dev2" bs=256K count=1
 dd if="$dev1" of="$dev3" bs=256K count=1
 
 pvs "$dev3" -o pv_uuid
+
 vgs $vg1
+
+dd if=backup_dev1 of="$dev3" bs=256K count=1
+pvs
+#-vvvv
+# TODO: Surely needs more inspecition about correct
+#       behavior for such case
+# vgs $vg1