smbd: Simplify strict_lock_default with early returns
[Samba.git] / ctdb / tests / eventscripts / 10.interface.monitor.010.sh
blob4d233193fb6fce103ae4c21f96082caf2cfa0fb4
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "CTDB_PARTIALLY_ONLINE_INTERFACES, all down"
7 setup_ctdb
9 ifaces=$(ctdb_get_interfaces)
11 export CTDB_PARTIALLY_ONLINE_INTERFACES="yes"
13 ethtool_interfaces_down $ifaces
15 msg=$(for i in $ifaces ; do echo "ERROR: No link on the public network interface $i" ; done)
17 required_result 1 "$msg"
19 simple_test