summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2014-04-04 13:19:34 -0500
committerDavid Teigland <teigland@redhat.com>2014-04-04 13:19:34 -0500
commitb5cab06c789a83d61a854c2ef027eecfccd8c352 (patch)
tree6f3a263b30f8881db91ba4d9c007a575452af425
parentb98b3f6be92fd39d380c3c97d15fe8bc2eba09fb (diff)
downloadlvm2-dev-dct-process-v9.tar.gz
test: add process-each-pv-nomdadev-dct-process-v9
-rw-r--r--test/shell/process-each-pv-nomda.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/shell/process-each-pv-nomda.sh b/test/shell/process-each-pv-nomda.sh
new file mode 100644
index 000000000..4e7b26b7e
--- /dev/null
+++ b/test/shell/process-each-pv-nomda.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Copyright (C) 2008-2013 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# 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
+
+test_description='Test process_each_pv with zero mda'
+
+. lib/test
+
+aux prepare_devs 2
+
+pvcreate $dev1 --metadatacopies 0
+pvcreate $dev2
+
+vgcreate $vg1 "$dev1" "$dev2"
+
+pvdisplay -a -C >err
+cat err
+grep $dev1 err
+grep $dev2 err
+