diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2013-05-31 12:48:37 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2013-05-31 21:42:32 +0200 |
commit | 274eae592fc0d1787e5794c8d4f6d17c8a595659 (patch) | |
tree | efd0e5256bc71bcfdde13b5eedaa151a23bb25f1 | |
parent | 1c83c159631dd9be40d47da168ce1c77423798b9 (diff) | |
download | lvm2-274eae592fc0d1787e5794c8d4f6d17c8a595659.tar.gz |
tests: skip if the system already uses tested minor
-rw-r--r-- | test/shell/activate-minor.sh | 4 |
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 |