1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

ctdb-tests: Use setup_script_options() in 10.interface tests

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-03-21 22:21:46 +11:00 committed by Amitay Isaacs
parent 45de2b1d9b
commit 87cd76e0c6
6 changed files with 10 additions and 2 deletions

View File

@ -8,7 +8,9 @@ setup
iface=$(ctdb_get_1_interface)
setup_script_options <<EOF
CTDB_PARTIALLY_ONLINE_INTERFACES=yes
EOF
ethtool_interfaces_down "$iface"

View File

@ -8,7 +8,9 @@ setup
ifaces=$(ctdb_get_interfaces)
setup_script_options <<EOF
CTDB_PARTIALLY_ONLINE_INTERFACES=yes
EOF
ethtool_interfaces_down $ifaces

View File

@ -10,7 +10,9 @@ iface=$(ctdb_get_1_interface)
setup_bond $iface "None"
setup_script_options <<EOF
CTDB_PARTIALLY_ONLINE_INTERFACES=yes
EOF
ethtool_interfaces_down "$iface"

View File

@ -12,7 +12,9 @@ for i in $ifaces ; do
setup_bond $i "None"
done
setup_script_options <<EOF
CTDB_PARTIALLY_ONLINE_INTERFACES=yes
EOF
ethtool_interfaces_down $ifaces

View File

@ -6,7 +6,9 @@ define_test "Missing interface, CTDB_PARTIALLY_ONLINE_INTERFACES=yes, warn"
setup
setup_script_options <<EOF
CTDB_PARTIALLY_ONLINE_INTERFACES=yes
EOF
iface=$(ctdb_get_1_interface)
ip link delete "$iface"

View File

@ -1,8 +1,6 @@
setup ()
{
setup_public_addresses
export CTDB_PARTIALLY_ONLINE_INTERFACES=""
}
_tcp_connections ()