Skip to content

Commit

Permalink
Add logic to run the 'get_hash.sh' script only when
Browse files Browse the repository at this point in the history
the baseline is to be updated.

Fixes ufs-community#574
  • Loading branch information
GeorgeGayno-NOAA committed Jan 11, 2022
1 parent 3e3294f commit a919025
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 15 deletions.
8 changes: 5 additions & 3 deletions reg_tests/chgres_cube/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ QUEUE="${QUEUE:-batch}"
# and baseline data for each test.
#-----------------------------------------------------------------------------

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

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

export HOMEufs=$PWD/../..

Expand Down
8 changes: 5 additions & 3 deletions reg_tests/chgres_cube/driver.wcoss_dell_p3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ PROJECT_CODE="${PROJECT_CODE:-GFS-DEV}"
# and baseline data for each test.
#-----------------------------------------------------------------------------

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

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

export HOMEufs=$PWD/../..

Expand Down
8 changes: 5 additions & 3 deletions reg_tests/global_cycle/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ QUEUE="${QUEUE:-batch}"
# Should not have to change anything below.
#-----------------------------------------------------------------------------

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

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

DATA_DIR="${WORK_DIR}/reg-tests/global-cycle"

Expand Down
7 changes: 7 additions & 0 deletions reg_tests/global_cycle/driver.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ QUEUE="${QUEUE:-batch}"
# 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

export DATA_DIR="${WORK_DIR}/reg-tests/global-cycle"

export HOMEreg=/work/noaa/nems/role-nems/ufs_utils/reg_tests/global_cycle
Expand Down
8 changes: 5 additions & 3 deletions reg_tests/global_cycle/driver.wcoss_dell_p3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ QUEUE="${QUEUE:-dev}"
# Should not have to change anything below.
#-----------------------------------------------------------------------------

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

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

DATA_DIR="${WORK_DIR}/reg-tests/global-cycle"

Expand Down
8 changes: 5 additions & 3 deletions reg_tests/grid_gen/driver.wcoss_dell_p3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ export WORK_DIR="${WORK_DIR}/reg-tests/grid-gen"
# Should not have to change anything below here.
#-----------------------------------------------------------------------------

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

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

LOG_FILE=consistency.log
SUM_FILE=summary.log
Expand Down

0 comments on commit a919025

Please sign in to comment.