Changeset 12569 for utils/CI/sette/sette.sh
- Timestamp:
- 2020-03-18T12:22:56+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/CI/sette/sette.sh
r12135 r12569 5 5 6 6 # Parse command-line arguments 7 #8 # -t "test configurations": select active test configurations9 # (overrides selection made using10 # environment variable SETTE_TEST_CONFIGS)11 12 7 if [ $# -gt 0 ]; then 13 while getopts :ht:option; do8 while getopts t:csh option; do 14 9 case $option in 10 c) export SETTE_CLEAN_CONFIGS='yes' 11 export SETTE_SYNC_CONFIGS='yes' 12 echo "" 13 echo "Configuration $SETTE_TEST_CONFIGS will be cleaned; this option enforces also synchronisation" 14 echo "";; 15 s) export SETTE_SYNC_CONFIGS='yes' 16 echo "" 17 echo "MY_SRC and EXP00 in $SETTE_TEST_CONFIGS will be synchronised with the MY_SRC and EXPREF from the reference configuration" 18 echo "";; 15 19 t) export SETTE_TEST_CONFIGS=$OPTARG 16 20 echo "" 17 21 echo "Configuration $SETTE_TEST_CONFIGS will be tested if they are available" 18 22 echo "" ;; 19 h | *) echo 'sette.sh allow no arguments (all configuration will be tested or -t "CFG1_to_test CFG2_to_test ..."'; exit 42 ;; 23 h | *) echo 'sette.sh allows no arguments (in this case all configuration will be tested)' 24 echo '-t "CFG1_to_test CFG2_to_test ..." to test some specific configurations' 25 echo '-c to clean each configuration' 26 echo '-s to synchronise the sette MY_SRC and EXP00 with the reference MY_SRC and EXPREF'; exit 42 ;; 20 27 esac 21 28 done … … 57 64 while [[ $NRUN -ne 0 && $nit -le 1080 ]]; do 58 65 nit=$((nit+1)) 59 NRUN=$( ${BATCH_STAT} | grep nemo_sette| wc -l )66 NRUN=$( ${BATCH_STAT} | grep ${BATCH_NAME} | wc -l ) 60 67 if [[ $NRUN -ne 0 ]]; then 61 printf "%-3d %s\r" $NRUN 'nemo_sette run still in queue or running ...';68 printf "%-3d %s\r" $NRUN 'nemo_sette runs still in queue or running ...'; 62 69 else 63 70 printf "%-50s\n" " "
Note: See TracChangeset
for help on using the changeset viewer.