execute all cases even some failed early.
This commit is contained in:
parent
5883ed6e73
commit
cbd4542120
|
@ -163,7 +163,7 @@ matrix:
|
|||
|
||||
cd ${TRAVIS_BUILD_DIR}/tests
|
||||
|
||||
./test-all.sh $TRAVIS_EVENT_TYPE
|
||||
./test-all.sh $TRAVIS_EVENT_TYPE COVER
|
||||
|
||||
TEST_RESULT=$?
|
||||
|
||||
|
|
|
@ -21,11 +21,12 @@ fi
|
|||
echo -e "${GREEN} ### Total $totalSuccess TSIM case(s) succeed! ### ${NC}"
|
||||
|
||||
totalFailed=`grep 'failed\|fault' out.txt | wc -l`
|
||||
echo -e "${RED} ### Total $totalFailed TSIM case(s) failed! ### ${NC}"
|
||||
# echo -e "${RED} ### Total $totalFailed TSIM case(s) failed! ### ${NC}"
|
||||
|
||||
if [ "$totalFailed" -ne "0" ]; then
|
||||
# echo -e "${RED} ### Total $totalFailed TSIM case(s) failed! ### ${NC}"
|
||||
exit $totalFailed
|
||||
echo -e "${RED} ### Total $totalFailed TSIM case(s) failed! ### ${NC}"
|
||||
|
||||
# exit $totalFailed
|
||||
fi
|
||||
|
||||
echo "### run Python script ###"
|
||||
|
@ -46,6 +47,7 @@ fi
|
|||
totalPyFailed=`grep 'failed\|fault' pytest-out.txt | wc -l`
|
||||
if [ "$totalPyFailed" -ne "0" ]; then
|
||||
echo -e "${RED} ### Total $totalPyFailed python case(s) failed! ### ${NC}"
|
||||
exit $totalPyFailed
|
||||
# exit $totalPyFailed
|
||||
fi
|
||||
|
||||
exit $(($totalFailed + $totalPyFailed))
|
||||
|
|
Loading…
Reference in New Issue