From aa5652073ee03b54ac87bc7d8c8e134a6c0501be Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 1 Jun 2020 16:24:11 +0800 Subject: [PATCH] ignore taosd in community directory of TDinternal. --- tests/script/sh/cfg.sh | 2 +- tests/script/sh/clear.sh | 2 +- tests/script/sh/deploy.sh | 2 +- tests/script/sh/exec.sh | 2 +- tests/script/sh/exec_tarbitrator.sh | 2 +- tests/script/test.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/script/sh/cfg.sh b/tests/script/sh/cfg.sh index 3bebc62d3b..0c240ca451 100755 --- a/tests/script/sh/cfg.sh +++ b/tests/script/sh/cfg.sh @@ -42,7 +42,7 @@ fi TAOS_DIR=`pwd` -BIN_DIR=`find . -name "taosd"|grep bin| cut -d '/' --fields=2,3` +BIN_DIR=`find . -name "taosd"|grep bin|head -n1|cut -d '/' --fields=2,3` BUILD_DIR=$TAOS_DIR/$BIN_DIR diff --git a/tests/script/sh/clear.sh b/tests/script/sh/clear.sh index 3699d52a97..af14c61c79 100755 --- a/tests/script/sh/clear.sh +++ b/tests/script/sh/clear.sh @@ -45,7 +45,7 @@ fi TAOS_DIR=`pwd` -BIN_DIR=`find . -name "taosd"|grep bin| cut -d '/' --fields=2,3` +BIN_DIR=`find . -name "taosd"|grep bin|head -n1|cut -d '/' --fields=2,3` BUILD_DIR=$TAOS_DIR/$BIN_DIR diff --git a/tests/script/sh/deploy.sh b/tests/script/sh/deploy.sh index 1590fdc83a..94499a50cb 100755 --- a/tests/script/sh/deploy.sh +++ b/tests/script/sh/deploy.sh @@ -40,7 +40,7 @@ fi TAOS_DIR=`pwd` -BIN_DIR=`find . -name "taosd"|grep bin| cut -d '/' --fields=2,3` +BIN_DIR=`find . -name "taosd"|grep bin|head -n1|cut -d '/' --fields=2,3` BUILD_DIR=$TAOS_DIR/$BIN_DIR diff --git a/tests/script/sh/exec.sh b/tests/script/sh/exec.sh index 0ab8c045ca..2682cac65f 100755 --- a/tests/script/sh/exec.sh +++ b/tests/script/sh/exec.sh @@ -51,7 +51,7 @@ fi TAOS_DIR=`pwd` -BIN_DIR=`find . -name "taosd"|grep bin| cut -d '/' --fields=2,3` +BIN_DIR=`find . -name "taosd"|grep bin|head -n1|cut -d '/' --fields=2,3` BUILD_DIR=$TAOS_DIR/$BIN_DIR diff --git a/tests/script/sh/exec_tarbitrator.sh b/tests/script/sh/exec_tarbitrator.sh index 1aab55ddaa..cb4d86915c 100755 --- a/tests/script/sh/exec_tarbitrator.sh +++ b/tests/script/sh/exec_tarbitrator.sh @@ -48,7 +48,7 @@ fi TAOS_DIR=`pwd` -BIN_DIR=`find . -name "taosd"|grep bin| cut -d '/' --fields=2,3` +BIN_DIR=`find . -name "taosd"|grep bin|head -n1|cut -d '/' --fields=2,3` BUILD_DIR=$TAOS_DIR/$BIN_DIR diff --git a/tests/script/test.sh b/tests/script/test.sh index 1714d3ecee..ccb9fac4c0 100755 --- a/tests/script/test.sh +++ b/tests/script/test.sh @@ -50,7 +50,7 @@ fi TOP_DIR=`pwd` -BIN_DIR=`find . -name "taosd"|grep bin| cut -d '/' --fields=2,3` +BIN_DIR=`find . -name "taosd"|grep bin|head -n1|cut -d '/' --fields=2,3` BUILD_DIR=$TOP_DIR/$BIN_DIR -- GitLab