diff options
| author | Martin Schwenke <martin@meltin.net> | 2013-10-15 16:44:45 +1100 |
|---|---|---|
| committer | Amitay Isaacs <amitay@gmail.com> | 2013-10-22 14:34:04 +1100 |
| commit | 05f5fe917919310d7d530516cd13aac1bd2718b1 (patch) | |
| tree | 7beff16dcb94798870d683cdf00ccbb02794028e /ctdb/tests/eventscripts/scripts | |
| parent | 1ede20925f8bfac9546d82db48d63bdbc8369d73 (diff) | |
tests/eventscripts: New tests for 20.multipathd
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 212d4b201c30804f69cffe4b7150d4b74bf2e54f)
Diffstat (limited to 'ctdb/tests/eventscripts/scripts')
| -rw-r--r-- | ctdb/tests/eventscripts/scripts/local.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh index 450396a491..0527eca78a 100644 --- a/ctdb/tests/eventscripts/scripts/local.sh +++ b/ctdb/tests/eventscripts/scripts/local.sh @@ -837,6 +837,29 @@ setup_httpd () ###################################################################### +# multipathd fakery + +setup_multipathd () +{ + for i ; do + case "$i" in + \!*) + _t="${i#!}" + echo "Marking ${_t} as having no active paths" + FAKE_MULTIPATH_FAILURES="${FAKE_MULTIPATH_FAILURES}${FAKE_MULTIPATH+FAILURES:+ }${_t}" + ;; + *) + _t="$i" + esac + CTDB_MONITOR_MPDEVICES="${CTDB_MONITOR_MPDEVICES}${CTDB_MONITOR_MPDEVICES:+ }${_t}" + done + + export CTDB_MONITOR_MPDEVICES FAKE_MULTIPATH_FAILURES + export FAKE_SLEEP_FORCE=0.1 +} + +###################################################################### + # Result and test functions # Set some globals and print the summary. |
