Skip to content

Commit

Permalink
Update rt.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
DusanJovic-NOAA committed Apr 25, 2024
1 parent c4bc489 commit 62a027a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ update_rtconf() {

generate_log() {
echo "rt.sh: Generating Regression Testing Log..."
set -x
COMPILE_COUNTER=0
FAILED_COMPILES=()
TEST_COUNTER=0
Expand Down Expand Up @@ -270,10 +271,10 @@ EOF
else
COMPILE_RESULT="PASS"
if [[ ${COMPILER} == "intel" ]]; then
COMPILE_NUM_WARNINGS=$(grep -c ": warning #" "${RUNDIR_ROOT}/compile_${COMPILE_ID}/err")
COMPILE_NUM_REMARKS=$(grep -c ": remark #" "${RUNDIR_ROOT}/compile_${COMPILE_ID}/err")
COMPILE_NUM_WARNINGS=$(grep -c ": warning #" "${RUNDIR_ROOT}/compile_${COMPILE_ID}/err" || true)
COMPILE_NUM_REMARKS=$(grep -c ": remark #" "${RUNDIR_ROOT}/compile_${COMPILE_ID}/err" || true)
if [[ ${COMPILE_NUM_WARNINGS} -gt 0 || ${COMPILE_NUM_REMARKS} -gt 0 ]]; then
COMPILE_WARNINGS+="("
COMPILE_WARNINGS+=" ("
[[ ${COMPILE_NUM_WARNINGS} -gt 0 ]] && COMPILE_WARNINGS+=" ${COMPILE_NUM_WARNINGS} warnings"
[[ ${COMPILE_NUM_REMARKS} -gt 0 ]] && COMPILE_WARNINGS+=" ${COMPILE_NUM_REMARKS} remarks"
COMPILE_WARNINGS+=" )"
Expand Down

0 comments on commit 62a027a

Please sign in to comment.