From a98a25e45ba853726e1ddc92790cd0fad100fa06 Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Fri, 6 Nov 2020 14:26:52 +0800 Subject: [PATCH] [TD-1966]fix test case error about valgrind --- Jenkinsfile | 1 - tests/pytest/handle_crash_gen_val_log.sh | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8bf7e435fd..eb4b56ad21 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -89,7 +89,6 @@ pipeline { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { sh ''' cd ${WKC}/tests/pytest - ./crash_gen.sh --valgrind -p -t 10 -s 100 -b 4 ./handle_crash_gen_val_log.sh ''' } diff --git a/tests/pytest/handle_crash_gen_val_log.sh b/tests/pytest/handle_crash_gen_val_log.sh index 1a4c12a16c..2d48de65c9 100755 --- a/tests/pytest/handle_crash_gen_val_log.sh +++ b/tests/pytest/handle_crash_gen_val_log.sh @@ -5,7 +5,9 @@ GREEN='\033[1;32m' GREEN_DARK='\033[0;32m' GREEN_UNDERLINE='\033[4;32m' NC='\033[0m' - +nohup /root/TDinternal/debug/build/bin/taosd -c /root/TDinternal/community/sim/dnode1/cfg >/dev/null & +./crash_gen.sh --valgrind -p -t 10 -s 100 -b 4 +pidof taosd|xargs kill grep 'start to execute\|ERROR SUMMARY' valgrind.err|grep -v 'grep'|uniq|tee crash_gen_mem_err.log for memError in `grep 'ERROR SUMMARY' crash_gen_mem_err.log | awk '{print $4}'` -- GitLab