Changeset 8028176 in flex_extract.git for Testing/Regression/Unit/Testfiles/submitscript.template.test
- Timestamp:
- Aug 5, 2020, 8:40:33 AM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- b4ae1d6
- Parents:
- 0a75335
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
Testing/Regression/Unit/Testfiles/submitscript.template.test
rbe6c0a2 r8028176 17 17 ##PBS -q np 18 18 ##PBS -S /usr/bin/ksh 19 ## -o /scratch/ms/testgroup/testuser/flex_ecmwf.$ {PBS_JOBID}.out19 ## -o /scratch/ms/testgroup/testuser/flex_ecmwf.$${PBS_JOBID}.out 20 20 ## job output is in .ecaccess_DO_NOT_REMOVE 21 21 ##PBS -j oe … … 25 25 26 26 set -x 27 export VERSION=7.1 28 case $ {HOST} in27 export VERSION=7.1.2 28 case $${HOST} in 29 29 *ecg*) 30 module load python31 30 module unload grib_api 32 module unload eccodes 31 module unload emos 32 module load python3 33 33 module load eccodes 34 module unload emos35 34 module load emos/455-r64 36 export PATH=$ {PATH}:fp_root_test_path/flex_extract_v7.1/source/python35 export PATH=$${PATH}:fp_root_test_path/flex_extract_v7.1.2/Source/Python 37 36 ;; 38 37 *cca*) 39 38 module switch PrgEnv-cray PrgEnv-intel 39 module load python3 40 40 module load eccodes 41 module load emos 42 module load python 43 export SCRATCH=${TMPDIR} 44 export PATH=${PATH}:fp_root_test_path/flex_extract_v7.1/source/python 41 module load emos/455-r64 42 export SCRATCH=$${TMPDIR} 43 export PATH=$${PATH}:fp_root_test_path/flex_extract_v7.1.2/Source/Python 45 44 ;; 46 45 esac 47 46 48 cd $ {SCRATCH}49 mkdir -p python$$50 cd python$$47 cd $${SCRATCH} 48 mkdir -p extract$$$$ 49 cd extract$$$$ 51 50 52 51 export CONTROL=CONTROL 53 52 54 cat >${CONTROL}<<EOF 53 cat >$${CONTROL}<<EOF 54 $control_content 55 55 EOF 56 56 57 57 58 submit.py --controlfile=$ {CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&158 submit.py --controlfile=$${CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&1 59 59 60 60 if [ $? -eq 0 ] ; then 61 61 l=0 62 for muser in `grep -i MAILOPS $ {CONTROL}`; do63 if [ $ {l} -gt 0 ] ; then64 mail -s flex.$ {HOST}.$$${muser} <prot62 for muser in `grep -i MAILOPS $${CONTROL}`; do 63 if [ $${l} -gt 0 ] ; then 64 mail -s flex.$${HOST}.$$$$ $${muser} <prot 65 65 fi 66 l=$(($ {l}+1))66 l=$(($${l}+1)) 67 67 done 68 68 else 69 69 l=0 70 for muser in `grep -i MAILFAIL $ {CONTROL}`; do71 if [ $ {l} -gt 0 ] ; then72 mail -s "ERROR! flex.$ {HOST}.$$"${muser} <prot70 for muser in `grep -i MAILFAIL $${CONTROL}`; do 71 if [ $${l} -gt 0 ] ; then 72 mail -s "ERROR! flex.$${HOST}.$$$$" $${muser} <prot 73 73 fi 74 l=$(($ {l}+1))74 l=$(($${l}+1)) 75 75 done 76 76 fi
Note: See TracChangeset
for help on using the changeset viewer.