update jdbc.sh
This commit is contained in:
parent
7819e62df0
commit
32b9b1e969
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue