From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4313 invoked by alias); 29 Feb 2008 00:09:22 -0000 Received: (qmail 4297 invoked by uid 9657); 29 Feb 2008 00:09:21 -0000 Date: Fri, 29 Feb 2008 00:09:00 -0000 Message-ID: <20080229000921.4295.qmail@sourceware.org> From: wysochanski@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/test t-vgsplit-operation.sh Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00017.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2008-02-29 00:09:21 Modified files: test : t-vgsplit-operation.sh Log message: Add vgsplit test to check failure when PV not in source volume group. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-vgsplit-operation.sh.diff?cvsroot=lvm2&r1=1.9&r2=1.10 --- LVM2/test/t-vgsplit-operation.sh 2008/02/28 17:39:47 1.9 +++ LVM2/test/t-vgsplit-operation.sh 2008/02/29 00:09:21 1.10 @@ -163,6 +163,19 @@ vgremove -f $vg2 && vgremove -f $vg1' +test_expect_success \ + 'vgsplit rejects split because PV not in VG' \ + 'vgcreate $vg1 $d1 $d2 && + vgcreate $vg2 $d3 $d4 && + lvcreate -l 4 -n $lv1 $vg1 && + lvcreate -l 4 -n $lv2 $vg1 && + vgchange -an $vg1 && + vgsplit $vg1 $vg2 $d3 2>err; + status=$?; echo status=$?; test $status = 5 && + grep "^ Physical volume $d3 not in volume group $vg1" err && + vgremove -f $vg2 && + vgremove -f $vg1' + test_done # Local Variables: # indent-tabs-mode: nil