update jdbc.sh

This commit is contained in:
sheyanjie-qq 2025-01-22 20:05:19 +08:00
parent 7819e62df0
commit 32b9b1e969
1 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,11 @@ cd ../../docs/examples/java
mvn clean test > jdbc-out.log 2>&1
tail -n 20 jdbc-out.log
if grep -q "BUILD FAILURE" jdbc-out.log; then
exit 8
fi
totalJDBCCases=`grep 'Tests run' jdbc-out.log | awk -F"[:,]" 'END{ print $2 }'`
failed=`grep 'Tests run' jdbc-out.log | awk -F"[:,]" 'END{ print $4 }'`
error=`grep 'Tests run' jdbc-out.log | awk -F"[:,]" 'END{ print $6 }'`
@ -19,4 +24,4 @@ fi
if [ "$totalJDBCFailed" -ne "0" ]; then
echo -e "\n${RED} ### Total $totalJDBCFailed JDBC case(s) failed! ### ${NC}"
exit 8
fi
fi