fix scrit issue

This commit is contained in:
Ping Xiao 2021-02-25 09:43:49 +08:00
parent ffd539440f
commit bed7772245
1 changed files with 4 additions and 3 deletions

View File

@ -288,10 +288,10 @@ if [ "$2" != "sim" ] && [ "$2" != "jdbc" ] ; then
fi fi
if [ "$2" != "sim" ] && [ "$2" != "python" ]; then if [ "$2" != "sim" ] && [ "$2" != "python" ] && [ "$1" == "full" ]; then
echo "### run JDBC test case ###" echo "### run JDBC test case ###"
echo $tests_dir cd $tests_dir
if [[ "$tests_dir" == *"$IN_TDINTERNAL"* ]]; then if [[ "$tests_dir" == *"$IN_TDINTERNAL"* ]]; then
cd ../../ cd ../../
@ -299,12 +299,13 @@ if [ "$2" != "sim" ] && [ "$2" != "python" ]; then
cd ../ cd ../
fi fi
pwd
cd debug/ cd debug/
nohup build/bin/taosd -c /etc/taos/ > /dev/null 2>&1 & nohup build/bin/taosd -c /etc/taos/ > /dev/null 2>&1 &
sleep 30 sleep 30
cd $tests_dir/../src/connector/jdbc cd $tests_dir/../src/connector/jdbc
mvn test > jdbc-out.log 2>&1 mvn test > jdbc-out.log 2>&1
tail -n 20 jdbc-out.log tail -n 20 jdbc-out.log