From b42a3119108a76a66ec6b68846a671b02c4e5d62 Mon Sep 17 00:00:00 2001 From: slguan Date: Thu, 30 Apr 2020 10:57:12 +0800 Subject: [PATCH] fix script error while get hostname in cloud machine --- tests/script/sh/deploy.sh | 2 +- tests/script/test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/script/sh/deploy.sh b/tests/script/sh/deploy.sh index 6439b0ff6c..81e955ccfb 100755 --- a/tests/script/sh/deploy.sh +++ b/tests/script/sh/deploy.sh @@ -70,7 +70,7 @@ if [ -f "$TAOS_FLAG" ] ; then sudo rm -rf $LOG_DIR fi -HOSTNAME=`hostname` +HOSTNAME=`hostname -f` if [ $NODE -eq 1 ]; then NODE=7100 diff --git a/tests/script/test.sh b/tests/script/test.sh index 2c9a5c4de9..743597eabd 100755 --- a/tests/script/test.sh +++ b/tests/script/test.sh @@ -80,7 +80,7 @@ TAOS_CFG=$PRG_DIR/cfg/taos.cfg touch -f $TAOS_CFG TAOS_FLAG=$PRG_DIR/flag -HOSTNAME=`hostname` +HOSTNAME=`hostname -f` echo " " >> $TAOS_CFG echo "first ${HOSTNAME}:7100" >> $TAOS_CFG