From e229dd82dc06ccaa084480492d659c1b36a7fcb2 Mon Sep 17 00:00:00 2001 From: saarloos <9090-90-90-9090@163.com> Date: Fri, 11 Nov 2022 16:51:06 +0800 Subject: [PATCH] test: fix qemu acl path and no run but success fix qemu acl path is different after set env and fix no run but success Signed-off-by: saarloos <9090-90-90-9090@163.com> --- test_tools/ci_test.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test_tools/ci_test.sh b/test_tools/ci_test.sh index e8561a3c..3a29ac39 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 "$@" -- Gitee