From: Marcel Poul Date: Mon, 19 Mar 2012 13:45:57 +0000 (+0000) Subject: connect to real hostname instead of "localhost" X-Git-Tag: glite-jobid-api-c_R_2_1_2_1~33 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=08435de3b525e3fc49c15f5e09ca360931050b36;p=jra1mw.git connect to real hostname instead of "localhost" --- 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