Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
define_test "No multipath devices configure to check"
-setup_multipathd
+setup
ok_null
define_test "3 multipath devices configure to check, all up"
-setup_multipathd "mpatha" "mpathb" "mpathc"
+setup "mpatha" "mpathb" "mpathc"
ok_null
define_test "3 multipath devices configure to check, one down"
-setup_multipathd "mpatha" "!mpathb" "mpathc"
+setup "mpatha" "!mpathb" "mpathc"
required_result 1 <<EOF
ERROR: multipath device "mpathb" has no active paths
define_test "3 multipath devices configure to check, multipath hangs"
-setup_multipathd "mpatha" "!mpathb" "mpathc"
+setup "mpatha" "!mpathb" "mpathc"
export FAKE_MULTIPATH_HANG="yes"
required_result 1 <<EOF
-setup_multipathd ()
+setup ()
{
_failures=""
_devices=""