From a7e7d95de9cf09652cef63d65484bbb0faa42e1c Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Sat, 29 Nov 2014 20:01:20 +1100 Subject: ctdb-tests: Use ip neigh command instead of arp Extend select_test_node_and_ips() to set $test_prefix in addition to $test_ip. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/scripts/integration.bash | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ctdb/tests/scripts/integration.bash') diff --git a/ctdb/tests/scripts/integration.bash b/ctdb/tests/scripts/integration.bash index 2ae03425f4..6bec78ef98 100644 --- a/ctdb/tests/scripts/integration.bash +++ b/ctdb/tests/scripts/integration.bash @@ -186,6 +186,11 @@ _select_test_node_and_ips () echo "Selected node ${test_node} with IPs: ${test_node_ips}." test_ip="${test_node_ips%% *}" + case "$test_ip" in + *:*) test_prefix="${test_ip}/128" ;; + *) test_prefix="${test_ip}/32" ;; + esac + [ -n "$test_node" ] || return 1 } -- cgit