From f4aa1da2351614fd75b3c6e5a32130c34404be41 Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Tue, 16 Mar 2021 16:19:45 +0800 Subject: [PATCH] fix error --- tests/test-all.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-all.sh b/tests/test-all.sh index b91440c7c6..7cd08e2510 100755 --- a/tests/test-all.sh +++ b/tests/test-all.sh @@ -24,12 +24,12 @@ function stopTaosd { function dohavecore(){ corefile=`find $corepath -mmin 1` - proc=`echo $corefile|cut -d "_" -f2` + proc=`echo $corefile|cut -d "_" -f3` if [ -n "$corefile" ];then echo 'taosd or taos has generated core' - echo '\n'|gdb /usr/local/taos/bin/$proc $corepath/$corefile -ex "bt 10" -ex quit tar zcvf $corepath/taos_`date "+%Y_%m_%d_%H:%M:%S"`.tar.gz /usr/local/taos if [[ $1 == 1 ]];then + echo '\n'|gdb /usr/local/taos/bin/$proc $corepath/$corefile -ex "bt 10" -ex quit exit 8 fi fi -- GitLab