git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc1a3ae
)
tests: new function ip2ipmask() for integration testing
author
Martin Schwenke
<martin@meltin.net>
Fri, 30 Nov 2012 05:37:28 +0000
(16:37 +1100)
committer
Martin Schwenke
<martin@meltin.net>
Mon, 7 Jan 2013 01:19:33 +0000
(12:19 +1100)
Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/scripts/integration.bash
patch
|
blob
|
history
diff --git
a/tests/scripts/integration.bash
b/tests/scripts/integration.bash
index 88134998563d76d40297d2ab3fc439ef9d155674..07e764ea20158491e67fb8696b4b3cd74c860a7f 100644
(file)
--- a/
tests/scripts/integration.bash
+++ b/
tests/scripts/integration.bash
@@
-494,6
+494,13
@@
wait_until_node_has_some_ips ()
wait_until 60 node_has_some_ips "$@"
}
+ip2ipmask ()
+{
+ _ip="$1"
+
+ ip addr show to "$_ip" | awk '$1 == "inet" { print $2 }'
+}
+
#######################################
daemons_stop ()