summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2013-05-31 12:48:37 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2013-05-31 21:42:32 +0200
commit274eae592fc0d1787e5794c8d4f6d17c8a595659 (patch)
treeefd0e5256bc71bcfdde13b5eedaa151a23bb25f1
parent1c83c159631dd9be40d47da168ce1c77423798b9 (diff)
downloadlvm2-274eae592fc0d1787e5794c8d4f6d17c8a595659.tar.gz
tests: skip if the system already uses tested minor
-rw-r--r--test/shell/activate-minor.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/shell/activate-minor.sh b/test/shell/activate-minor.sh
index 5433f01e5..3726faa55 100644
--- a/test/shell/activate-minor.sh
+++ b/test/shell/activate-minor.sh
@@ -11,6 +11,10 @@
. lib/test
+# Just skip this test if minor is already in use...
+dmsetup info | tee info
+egrep "^Major, minor: *[0-9]+, 123" info && skip
+
aux prepare_vg 2
lvcreate -a n --zero n -l 1 -n foo $vg
lvchange $vg/foo -My --major=255 --minor=123