diff --git a/test_tools/ci_test.sh b/test_tools/ci_test.sh index e8561a3c2a95ef830e578e288f3a28789d88728b..3a29ac39b74aa7156c93fb3733bf0b2a4eedb535 100644 --- a/test_tools/ci_test.sh +++ b/test_tools/ci_test.sh @@ -119,12 +119,18 @@ function result_output() { } function test_result_ana() { + successNum=0 for one_suite in ${run_suitecase[@]}; do checkFail="" if [ -e ${results_path}/${one_suite}/failed ]; then checkFail=$(ls ${results_path}/${one_suite}/failed/) fi + if [ -e ${results_path}/${one_suite}/succeed ]; then + tmpSuccessNum=$(ls ${results_path}/${one_suite}/succeed/ | wc -l) + successNum=`expr $successNum + $tmpSuccessNum` + fi + for oneFail in ${checkFail[@]}; do if [[ "${ignoreFail[*]}" =~ "${oneFail}" ]]; then echo "INFO: ignore $oneFail test fail" @@ -135,6 +141,10 @@ function test_result_ana() { done done + if [ $successNum -eq 0 ]; then + exitCode=1 + fi + result_output } @@ -280,6 +290,7 @@ function main() { # 环境准备 if [ -e /opt/buildtools/nativesdk/environment-setup-x86_64-pokysdk-linux ]; then source /opt/buildtools/nativesdk/environment-setup-x86_64-pokysdk-linux + export MUGEN_QEMU_ACL_DIR="/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/etc/qemu/" fi set_param "$@"