summaryrefslogtreecommitdiff
path: root/test/shell/pv-range-overflow.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/shell/pv-range-overflow.sh')
-rw-r--r--test/shell/pv-range-overflow.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/shell/pv-range-overflow.sh b/test/shell/pv-range-overflow.sh
index 0f353dd..ab845a9 100644
--- a/test/shell/pv-range-overflow.sh
+++ b/test/shell/pv-range-overflow.sh
@@ -1,4 +1,5 @@
-#!/bin/sh
+#!/usr/bin/env bash
+
# Copyright (C) 2008-2011 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
@@ -7,15 +8,18 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
-# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# 'Ensure that pvmove diagnoses PE-range values 2^32 and larger.'
-. lib/test
+
+SKIP_WITH_LVMPOLLD=1
+
+. lib/inittest
aux prepare_vg 2
-lvcreate -L4 -n"$lv" $vg
+lvcreate -L4 -n $lv $vg
# Test for the bogus diagnostic reported in BZ 284771
# http://bugzilla.redhat.com/284771.
@@ -30,3 +34,4 @@ grep "Logical volume bogus not found." err
# 'run the offending pvmove command'
not pvmove -v -n$lv "$dev1":4294967296 "$dev2"
+vgremove -ff $vg