From cbd4542120f5bca427622bad23ecdecd0de2ac8b Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 11 May 2020 15:10:17 +0800 Subject: [PATCH] execute all cases even some failed early. --- .travis.yml | 2 +- tests/test-all.sh | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index b460ad05b0..72970bc1e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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=$? diff --git a/tests/test-all.sh b/tests/test-all.sh index 93bfa7a426..e58a6f5132 100755 --- a/tests/test-all.sh +++ b/tests/test-all.sh @@ -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)) -- GitLab