Skip to content

Commit

Permalink
update reg_tests/rt.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
DeniseWorthen committed Jun 12, 2024
1 parent d07c282 commit e071d2e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion reg_tests/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,26 @@ cd ../reg_tests
#if [[ $target == "orion" ]] || [[ $target == "jet" ]] || [[ $target == "hera" ]] || [[ $target == "hercules" ]] || [[ $target == "wcoss2" ]] ; then
if [[ $target == "orion" ]] || [[ $target == "jet" ]] || [[ $target == "hera" ]] || [[ $target == "hercules" ]] ; then

cd ocnice_prep
export ACCOUNT=$PROJECT_CODE
export STMP=$WORK_DIR/reg-tests

./rt.sh 2>/dev/null &

set -x

sleep_time=0
while [ ! -f "summary.log" ]; do
sleep 10
sleep_time=$((sleep_time+10))
if (( sleep_time > TIMEOUT_LIMIT )); then
kill -9 %1
mail -s "UFS_UTILS Consistency Tests timed out on ${target}" ${MAILTO} < ${WORK_DIR}/reg_test_results.txt
exit 1
fi
done
cd ..

cd cpld_gridgen
export ACCOUNT=$PROJECT_CODE
export STMP=$WORK_DIR/reg-tests
Expand Down Expand Up @@ -140,7 +160,7 @@ echo "Commit hash: ${current_hash}" >> ${WORK_DIR}/reg_test_results.txt
echo "" >> ${WORK_DIR}/reg_test_results.txt

success=true
for dir in weight_gen cpld_gridgen chgres_cube grid_gen global_cycle ice_blend snow2mdl; do
for dir in weight_gen ocnice_prep cpld_gridgen chgres_cube grid_gen global_cycle ice_blend snow2mdl; do
if grep -qi "FAILED" ${dir}/summary.log; then
success=false
echo "${dir} consistency tests FAILED" >> ${WORK_DIR}/reg_test_results.txt
Expand Down

0 comments on commit e071d2e

Please sign in to comment.