未验证 提交 7975b3a6 编写于 作者: H Hui Li 提交者: GitHub

Merge pull request #9408 from taosdata/xiaoping/add_test_case

[TD-12477]<test>(other): update script for full time
......@@ -139,17 +139,17 @@ function runPyCaseOneByOne {
case=`echo $line|awk '{print $NF}'`
fi
start_time=`date +%s`
date +%F\ %T | tee -a pytest-out.log
date +%F\ %T | tee -a $tests_dir/pytest-out.log
echo -n $case
$line > /dev/null 2>&1 && \
echo -e "${GREEN} success${NC}" | tee -a pytest-out.log || \
echo -e "${RED} failed${NC}" | tee -a pytest-out.log
echo -e "${GREEN} success${NC}" | tee -a $tests_dir/pytest-out.log || \
echo -e "${RED} failed${NC}" | tee -a $tests_dir/pytest-out.log
end_time=`date +%s`
out_log=`tail -1 pytest-out.log `
# if [[ $out_log =~ 'failed' ]];then
# exit 8
# fi
echo execution time of $case was `expr $end_time - $start_time`s. | tee -a pytest-out.log
echo execution time of $case was `expr $end_time - $start_time`s. | tee -a $tests_dir/pytest-out.log
else
$line > /dev/null 2>&1
fi
......@@ -339,10 +339,9 @@ if [ "$2" != "sim" ] && [ "$2" != "jdbc" ] && [ "$2" != "unit" ] && [ "$2" != "
export LD_LIBRARY_PATH=$TOP_DIR/$LIB_DIR:$LD_LIBRARY_PATH
[ -f $tests_dir/pytest-out.log ] && rm -f $tests_dir/pytest-out.log
cd $tests_dir/pytest
[ -f pytest-out.log ] && rm -f pytest-out.log
if [ "$1" == "cron" ]; then
echo "### run Python regression test ###"
runPyCaseOneByOne regressiontest.sh
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册