1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh . "${TEST_SCRIPTS_DIR}/unit.sh" define_test "Missing interface, fail" setup iface=$(ctdb_get_1_interface) ip link delete "$iface" required_result 1 <<EOF ERROR: Monitored interface dev123 does not exist EOF simple_test