Merge pull request #20417 from taosdata/TD-23119
ci: add successful log
This commit is contained in:
commit
8577aa85fb
|
@ -460,7 +460,7 @@ pipeline {
|
||||||
cd ${WKC}/tests/parallel_test
|
cd ${WKC}/tests/parallel_test
|
||||||
export DEFAULT_RETRY_TIME=2
|
export DEFAULT_RETRY_TIME=2
|
||||||
date
|
date
|
||||||
''' + timeout_cmd + ''' time ./run.sh -e -m /home/m.json -t cases.task -b ${BRANCH_NAME}_${BUILD_ID} -l ${WKDIR}/log -o 480 ''' + extra_param + '''
|
''' + timeout_cmd + ''' time ./run.sh -e -m /home/m.json -t cases.task -b ${BRANCH_NAME}_${BUILD_ID} -l ${WKDIR}/log -o 600 ''' + extra_param + '''
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -274,6 +274,7 @@ function run_thread() {
|
||||||
# echo "$thread_no ${line} DONE"
|
# echo "$thread_no ${line} DONE"
|
||||||
if [ $ret -eq 0 ]; then
|
if [ $ret -eq 0 ]; then
|
||||||
echo -e "$case_index \e[34m DONE <<<<< \e[0m ${case_info} \e[34m[${total_time}s]\e[0m \e[32m success\e[0m"
|
echo -e "$case_index \e[34m DONE <<<<< \e[0m ${case_info} \e[34m[${total_time}s]\e[0m \e[32m success\e[0m"
|
||||||
|
flock -x $lock_file -c "echo \"${case_info}|success|${total_time}\" >>${success_case_file}"
|
||||||
else
|
else
|
||||||
if [ ! -z ${web_server} ]; then
|
if [ ! -z ${web_server} ]; then
|
||||||
flock -x $lock_file -c "echo -e \"${hosts[index]} ret:${ret} ${line}\n ${web_server}/$test_log_dir/${case_file}.txt\" >>${failed_case_file}"
|
flock -x $lock_file -c "echo -e \"${hosts[index]} ret:${ret} ${line}\n ${web_server}/$test_log_dir/${case_file}.txt\" >>${failed_case_file}"
|
||||||
|
@ -365,6 +366,8 @@ lock_file=$log_dir/$$.lock
|
||||||
index_file=$log_dir/case_index.txt
|
index_file=$log_dir/case_index.txt
|
||||||
stat_file=$log_dir/stat.txt
|
stat_file=$log_dir/stat.txt
|
||||||
failed_case_file=$log_dir/failed.txt
|
failed_case_file=$log_dir/failed.txt
|
||||||
|
success_case_file=$log_dir/success.txt
|
||||||
|
|
||||||
echo "0" >$index_file
|
echo "0" >$index_file
|
||||||
|
|
||||||
i=0
|
i=0
|
||||||
|
|
Loading…
Reference in New Issue