From 49215f8f1f5fc48e179e5d3c03089e1e588de1bb Mon Sep 17 00:00:00 2001 From: han_jin_fei <1970336264@qq.com> Date: Fri, 28 Jul 2023 17:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A4=B1=E8=B4=A5=E6=97=A5?= =?UTF-8?q?=E5=BF=97copy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: han_jin_fei <1970336264@qq.com> --- lycium/test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lycium/test.sh b/lycium/test.sh index d61abb41..b5a04157 100755 --- a/lycium/test.sh +++ b/lycium/test.sh @@ -136,7 +136,8 @@ checkhpk(){ checkprepare > /dev/null 2>&1 # 执行测试前准备工作 fi openharmonycheck > /dev/null 2>&1 # 执行测试 - if [ $? -ne 0 ] + checkret=$? + if [ $checkret -ne 0 ] then failedlibs[${#failedlibs[@]}]=${libdir##*/} echo -e "check ${libdir##*/} \033[31m failed \033[0m" # 红色显示失败 @@ -148,6 +149,11 @@ checkhpk(){ if [ -f ${libdir##*/}_${ARCH}_${OHOS_SDK_VER}_test.log ] then cp ${libdir##*/}_${ARCH}_${OHOS_SDK_VER}_test.log $LOG_PATH # 将测试的log收集到指定目录 + if [ $checkret -ne 0 ] + then + mkdir -p $LYCIUM_FAULT_PATH/${libdir##*/} + cp ${libdir##*/}_${ARCH}_${OHOS_SDK_VER}_test.log $LYCIUM_FAULT_PATH/${libdir##*/} + fi fi cd $OLDPWD -- Gitee