add stop taosd script

This commit is contained in:
Ping Xiao 2021-02-25 11:40:31 +08:00
parent 5176a3d607
commit 541630967c
2 changed files with 15 additions and 0 deletions

2
tests/Jenkinsfile vendored
View File

@ -55,6 +55,8 @@ pipeline {
sh '''
cd ${WKC}/tests
./test-all.sh b1
cd ${WKC}/tests
./test-all.sh full jdbc
date'''
}
}

View File

@ -10,6 +10,18 @@ NC='\033[0m'
tests_dir=`pwd`
IN_TDINTERNAL="community"
function stopTaosd {
echo "Stop taosd"
systemctl stop taosd
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
while [ -n "$PID" ]
do
pkill -TERM -x taosd
sleep 1
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
done
}
function dohavecore(){
corefile=`find $corepath -mmin 1`
if [ -n "$corefile" ];then
@ -301,6 +313,7 @@ if [ "$2" != "sim" ] && [ "$2" != "python" ] && [ "$1" == "full" ]; then
pwd
cd debug/
stopTaosd
nohup build/bin/taosd -c /etc/taos/ > /dev/null 2>&1 &
sleep 30