Skip to content

Commit

Permalink
Updates for the snow2mdl test.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Jan 12, 2022
1 parent a919025 commit a6bda24
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions reg_tests/snow2mdl/driver.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ export DATA="${DATA}/reg-tests/snow2mdl"
# Should not have to change anything below.
#-----------------------------------------------------------------------------

export UPDATE_BASELINE="FALSE"
#export UPDATE_BASELINE="TRUE"

if [ "$UPDATE_BASELINE" = "TRUE" ]; then
source ../get_hash.sh
fi

rm -fr $DATA

export HOMEreg=/work/noaa/nems/role-nems/ufs_utils/reg_tests/snow2mdl
Expand Down
6 changes: 5 additions & 1 deletion reg_tests/snow2mdl/snow2mdl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fi

test_failed=0

cmp ${DATA}/snogrb_model $HOMEreg/baseline_data/snogrb_model
cmp ${DATA}/snogrb_model $HOMEreg/baseline_data/t1534/snogrb_model
iret=$?
if [ $iret -ne 0 ]; then
test_failed=1
Expand All @@ -44,6 +44,10 @@ if [ $test_failed -ne 0 ]; then
echo "<<< SNOW2MDL TEST FAILED. >>>"
echo "*********************************"
echo "<<< SNOW2MDL TEST FAILED. >>>" > ./summary.log
if [ "$UPDATE_BASELINE" = "TRUE" ]; then
cd $DATA
$HOMEgfs/reg_tests/update_baseline.sh $HOMEreg "t1534" $commit_num
fi
else
echo
echo "*********************************"
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/update_baseline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fi

mkdir -p $base_dir_commit

for files in *.nc
for files in *.nc snogrb_model
do
if [ -f $files ]; then
cp $files $base_dir_commit
Expand Down

0 comments on commit a6bda24

Please sign in to comment.