summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-08-05 14:55:13 +1000
committerNeilBrown <neilb@suse.de>2013-08-05 14:55:13 +1000
commit9540cc244dfc56d40f686d8f63aa5b6d73663bcf (patch)
treed41a15af6b6cce11cad6dce23cab744d8df72f2a /test
parent4389b648bb9dc8ab61ce8777654d59634dafc737 (diff)
test: ensure testing uses correct mdmon
When testing we want to run mdmon directly, not use systemctl to get systemd to run it. So allow an environment variable to make that choice. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'test')
-rwxr-xr-xtest3
1 files changed, 3 insertions, 0 deletions
diff --git a/test b/test
index 9e140f0a..8e8d1df3 100755
--- a/test
+++ b/test
@@ -30,6 +30,9 @@ if grep -s 'Personalities : .*multipath' > /dev/null /proc/mdstat ; then
fi
INTEGRITY=yes
+# make sure to test local mdmon, not system one
+export MDADM_NO_SYSTEMCTL=1
+
# assume md0, md1, md2 exist in /dev
md0=/dev/md0 md1=/dev/md1 md2=/dev/md2
mdp0=/dev/md_d0