From: Tony Asleson Date: Thu, 14 Nov 2013 08:43:02 -0600 Subject: [PATCH 05/13] python-lvm: Test case change for vg.reduce In-Reply-To: <1384440190-5759-1-git-send-email-tasleson@redhat.com> References: <1384440190-5759-1-git-send-email-tasleson@redhat.com> Message-ID: <1384440190-5759-6-git-send-email-tasleson@redhat.com> List-Id: To: lvm-devel@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Fix reduce as newly changed vg reduce fails when you try to remove the last pv in the vg. Signed-off-by: Tony Asleson --- test/api/python_lvm_unit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/api/python_lvm_unit.py b/test/api/python_lvm_unit.py index bceb82c..eab9575 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() -- 1.8.2.1