[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] master - tests: more pvresize tests

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=04861b9bed41a2e907fca6f71acbf4c39cfebfd5
Commit:        04861b9bed41a2e907fca6f71acbf4c39cfebfd5
Parent:        db04d3e6d29dde331a88eec2cec5249ee7c211f0
Author:        Zdenek Kabelac <zkabelac redhat com>
AuthorDate:    Mon Mar 24 10:00:39 2014 +0100
Committer:     Zdenek Kabelac <zkabelac redhat com>
CommitterDate: Tue Mar 25 11:22:59 2014 +0100

tests: more pvresize tests

Maybe move to separate pvresize test,
remove vgck size this is already executed elsewhere.
 test/shell/covercmd.sh |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/test/shell/covercmd.sh b/test/shell/covercmd.sh
index f1bdca9..ad7f480 100644
--- a/test/shell/covercmd.sh
+++ b/test/shell/covercmd.sh
@@ -77,7 +77,6 @@ for i in pr "p rw" an ay "-monitor y" "-monitor n" \
 pvck "$dev1"
-vgck $vg
 vgs -o all $vg
 lvrename $vg $lv $lv-rename
 vgcfgbackup -f backup.$$ $vg
@@ -87,7 +86,12 @@ pvremove -y -ff "$dev5"
 not vgcfgrestore  -f backup.$$ $vg
 pvcreate -u $TEST_UUID --restorefile  backup.$$ "$dev5"
 vgremove -f $vg
+# test pvresize functionality
+not pvresize
+not pvresize --setphysicalvolumesize -10M "$dev1"
 pvresize --setphysicalvolumesize 10M "$dev1"
+pvresize "$dev1"
 # test various errors and obsoleted tools
 not lvmchange

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]