#!/bin/sh . "${TEST_SCRIPTS_DIR}/unit.sh" define_test "Single IP, restores original rt_tables" setup create_policy_routing_config 1 default _rt_tables="$CTDB_SYS_ETCDIR/iproute2/rt_tables" _rt_orig=$(TMPDIR="$CTDB_TEST_TMP_DIR" mktemp) cp "$_rt_tables" "$_rt_orig" ctdb_get_1_public_address | { read dev ip bits ok_null simple_test_event "takeip" $dev $ip $bits ok <