Skip to content

Commit

Permalink
Merge pull request ufs-community#4 from mkavulich/feature/crontab-rep…
Browse files Browse the repository at this point in the history
…lacement

Modify run_WE2E_tests.sh
  • Loading branch information
mark-a-potts authored Nov 18, 2022
2 parents 0596e55 + be18c32 commit 7422a60
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions tests/WE2E/run_WE2E_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,16 @@ if [ -z "${machine}" ]; then
The argument \"machine\" specifying the machine or platform on which to
run the WE2E tests was not specified in the call to this script. \
${help_msg}"
fi
# Cheyenne-specific test limitation

if [ "${machine,,}" = "cheyenne" ]; then
use_cron_to_relaunch=FALSE
echo "
Due to system limitations, the 'use_cron_to_relaunch' command can not be used on
the '${machine}' machine. Setting this variable to false.
"
fi

if [ -z "${account}" ]; then
Expand Down Expand Up @@ -1298,6 +1308,38 @@ Could not generate an experiment for the test specified by test_name:
test_name = \"${test_name}\""

done

# Print notes about monitoring/running jobs if use_cron_to_relaunch = FALSE
topdir=${scrfunc_dir%/*/*/*}
expt_dirs_fullpath="${topdir}/expt_dirs"

echo "
========================================================================
========================================================================
All experiments have been generated in the directory
${expt_dirs_fullpath}
========================================================================
========================================================================
"

if [ "${use_cron_to_relaunch,,}" = "false" ]; then
echo "
The variable 'use_cron_to_relaunch' has been set to FALSE. Jobs will not be automatically run via crontab.
You can run each task manually in the experiment directory:
(${expt_dirs_fullpath})
Or you can use the 'run_srw_tests.py' script in the ush/ directory:
cd $USHdir
./run_srw_tests.py -e=${expt_dirs_fullpath}
"
fi

#
#-----------------------------------------------------------------------
#
Expand Down

0 comments on commit 7422a60

Please sign in to comment.