From 08435de3b525e3fc49c15f5e09ca360931050b36 Mon Sep 17 00:00:00 2001 From: Marcel Poul Date: Mon, 19 Mar 2012 13:45:57 +0000 Subject: [PATCH] connect to real hostname instead of "localhost" --- org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh index 14e57e9..9eb480b 100755 --- a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh +++ b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh @@ -58,6 +58,7 @@ source ${COMMON} #flag=0 srvbin="" clibin="" +server_host=`hostname -A || hostname -f` while test -n "$1" do case "$1" in @@ -188,7 +189,7 @@ else fi printf "CANL client: connect to CANL sample server \n" -${EMI_CANL_CLIENT} -s localhost -p "${nu_port}" +${EMI_CANL_CLIENT} -s "${server_host}" -p "${nu_port}" if [ $? != 0 ]; then test_failed else -- 1.8.2.3