connect to real hostname instead of "localhost"
authorMarcel Poul <marcel.poul@cern.ch>
Mon, 19 Mar 2012 13:45:57 +0000 (13:45 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Mon, 19 Mar 2012 13:45:57 +0000 (13:45 +0000)
org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh

index 14e57e9..9eb480b 100755 (executable)
@@ -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