diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2014-08-14 11:45:02 +0200 |
---|---|---|
committer | Harshavardhana <harsha@harshavardhana.net> | 2014-08-20 13:41:43 -0700 |
commit | 28a2c9ee3994e19a708b0c42bc2445073f42a87d (patch) | |
tree | 822cd516d40f48c220eeddf0cfc58acd7492a7cc | |
parent | 473f115cbf18dd5229636c817d49b2c60471e227 (diff) |
Regression test portability: 127.0.0.0/8
On Linux, the host answers any address in 127.0.0.0/8
On NetBSD, any address must be configured with ifconfig lo0 alias before
it can be used.
BUG: 1129939
Change-Id: Ia628716c104d955817a95e0c5e04ead924bb4847
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/8483
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Harshavardhana <harsha@harshavardhana.net>
Tested-by: Harshavardhana <harsha@harshavardhana.net>
-rwxr-xr-x | tests/cluster.rc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cluster.rc b/tests/cluster.rc index faf3208caee..49bd3caedec 100755 --- a/tests/cluster.rc +++ b/tests/cluster.rc @@ -100,6 +100,13 @@ function define_hosts() { for i in `seq 1 $count`; do eval "H_$i=${CLUSTER_PFX}.$i" eval "H$i=${CLUSTER_PFX}.$i"; + case $OSTYPE in + NetBSD) + ifconfig lo0 alias ${CLUSTER_PFX}.$i 2>/dev/null + ;; + *) + ;; + esac done } |