Skip to content

Commit

Permalink
Update e2e log archive (#27534)
Browse files Browse the repository at this point in the history
Signed-off-by: Bennu-Li <[email protected]>
  • Loading branch information
Bennu-Li authored Oct 9, 2023
1 parent df6e0b7 commit 7e9ed91
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/scripts/ci_logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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"
Expand Down

0 comments on commit 7e9ed91

Please sign in to comment.