Skip to content

Commit

Permalink
Modify run_WE2E_tests.sh
Browse files Browse the repository at this point in the history
 - When on Cheyenne, set use_cron_to_relaunch=false
 - When use_cron_to_relaunch=false, output a message at the end of the script
   describing how to run the new run_srw_tests.py script to manage the tests
 - Regardless of other variables, print a message at the end of the script
   showing the user where the test directory is
  • Loading branch information
mkavulich committed Nov 17, 2022
1 parent 0596e55 commit be18c32
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 be18c32

Please sign in to comment.