From 7e9ed9130487b5ca16fe6e9aa0d8eb898c65e25b Mon Sep 17 00:00:00 2001 From: Bennu Date: Mon, 9 Oct 2023 15:45:32 +0800 Subject: [PATCH] Update e2e log archive (#27534) Signed-off-by: Bennu-Li --- tests/scripts/ci_logs.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/scripts/ci_logs.sh b/tests/scripts/ci_logs.sh index 98e1154210021..f841e2084ce9d 100755 --- a/tests/scripts/ci_logs.sh +++ b/tests/scripts/ci_logs.sh @@ -88,7 +88,8 @@ fi # Try to found logs file from mount disk /volume1/ci-logs # log_files=$(find ${LOG_DIR} -type f -name "*${RELEASE_NAME}*" ) log_files=$(ls ${LOG_DIR} | grep ${RELEASE_NAME} || echo nonexistment) -if [ "${log_files}"="nonexistment" ]; then + +if [ "${log_files}" == "nonexistment" ]; then echo "No log files find" else for log_file in ${log_files} @@ -102,11 +103,11 @@ fi # remain_log_files=$(find ${LOG_DIR} -type f -name "*${RELEASE_NAME}*") -ls ${LOG_DIR} | grep ${RELEASE_NAME} +# ls ${LOG_DIR} | grep ${RELEASE_NAME} remain_log_files=$(ls ${LOG_DIR} | grep ${RELEASE_NAME} || echo nonexistment) -if [ "${remain_log_files}"="nonexistment" ]; then +if [ "${remain_log_files}" == "nonexistment" ]; then echo "No remain log files" else echo "Still have log files & Remove again"