summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2013-09-10 17:59:45 -0500
committerTony Asleson <tasleson@redhat.com>2013-11-19 14:40:32 -0600
commitec7f632ce08014ca5ceb3ac6c92d834fb0b8c93e (patch)
tree27f31cb5a303a2c5960b4b78a44d5fffd1e239cf
parent5074dcc896681494309c59830803b54a84429fd0 (diff)
downloadlvm2-ec7f632ce08014ca5ceb3ac6c92d834fb0b8c93e.tar.gz
python-lvm: Test case change for vg.reduce
Fix reduce as newly changed vg reduce fails when you try to remove the last pv in the vg. Signed-off-by: Tony Asleson <tasleson@redhat.com>
-rwxr-xr-xtest/api/python_lvm_unit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/api/python_lvm_unit.py b/test/api/python_lvm_unit.py
index bceb82cd3..eab957500 100755
--- a/test/api/python_lvm_unit.py
+++ b/test/api/python_lvm_unit.py
@@ -185,7 +185,7 @@ class TestLvm(unittest.TestCase):
for p in pvs:
pe_devices.append(p.getName())
- for pv in pe_devices:
+ for pv in pe_devices[:-1]:
vg.reduce(pv)
vg.remove()