diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2012-05-22 18:55:29 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-05-23 13:25:44 +1000 |
commit | 04c1ca5f290251f1d0399b11751bb56c9740b1f3 (patch) | |
tree | 71f69a3fdbbbefd703b887fb10618dcee0ad941a /tests | |
parent | 3b2aad6e8b7fdcaeb3d9471af8de6ff3339291f9 (diff) |
Check for multipath module before running multipath tests
Some systems do not ship the md multipath module. If not available
simply skip any multipath tests.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/00multipath | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/00multipath b/tests/00multipath index bc0429f4..84e4d693 100644 --- a/tests/00multipath +++ b/tests/00multipath @@ -2,6 +2,11 @@ # # create a multipath, and fail and stuff +if [ "$MULTIPATH" != "yes" ]; then + echo -ne 'skipping... ' + exit 0 +fi + mdadm -CR $md1 -l multipath -n2 $path0 $path1 testdev $md1 1 $mdsize12 1 |