From 5c59e696079f1cc302270eb35349aa3426a1a1ba Mon Sep 17 00:00:00 2001 From: chenhaoran Date: Wed, 9 Nov 2022 21:17:15 +0800 Subject: [PATCH] ci:add the env that builds with sanitizer --- tests/parallel_test/run.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/parallel_test/run.sh b/tests/parallel_test/run.sh index efbe83be61..fee85f0425 100755 --- a/tests/parallel_test/run.sh +++ b/tests/parallel_test/run.sh @@ -165,6 +165,14 @@ function run_thread() { case_redo_time=${DEFAULT_RETRY_TIME:-2} fi local case_build_san=`echo "$line"|cut -d, -f3` + if [ "${case_build_san}" == "y" ]; then + case_build_san="y" + elif [[ "${case_build_san}" == "n" ]] || [[ "${case_build_san}" == "" ]]; then + case_build_san="n" + else + usage + exit 1 + fi local exec_dir=`echo "$line"|cut -d, -f4` local case_cmd=`echo "$line"|cut -d, -f5` local case_file="" @@ -193,7 +201,7 @@ function run_thread() { mkdir -p $log_dir/$case_path fi cmd="${runcase_script} ${script} -w ${workdirs[index]} -c \"${case_cmd}\" -t ${thread_no} -d ${exec_dir} -s ${case_build_san} ${timeout_param}" - # echo "$thread_no $count $cmd" + echo "$thread_no $count $cmd" local ret=0 local redo_count=1 local case_log_file=$log_dir/${case_file}.txt