X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fdeployments%2Fst-client%2Fprogram.sh;h=5714785bf4c68179428d2d71d2fc1b44a9864ce3;hb=1061cb8cf19ca6d594505c3e487606c0dd0634ff;hp=8c461acd5cdda59682d2b245533bdb518d523814;hpb=23f8d538e91355cecfc96636f16597a2a48649ac;p=anna.git diff --git a/example/diameter/launcher/deployments/st-client/program.sh b/example/diameter/launcher/deployments/st-client/program.sh index 8c461ac..5714785 100755 --- a/example/diameter/launcher/deployments/st-client/program.sh +++ b/example/diameter/launcher/deployments/st-client/program.sh @@ -83,7 +83,7 @@ EOF } advice_to_squeeze_idle_cpu () { - local idle=$(top -b -d 0.1 -n 2 | grep 'Cpu(s):'| tail -1 | awk '{print $8}' | sed 's/,/./') + local idle=$(top -b -d 1 -n 2 | grep 'Cpu(s):'| tail -1 | awk '{print $8}' | sed 's/,/./') sleep 10 echo echo "Idle cpu now: $idle. Check the system CPU with top. If is not overcommited, consider" @@ -184,7 +184,7 @@ else TESTCASE_DIR=$(readlink -f dynlibs/libanna_launcher_procedure_default_shared.so | xargs dirname) DYNAMIC_SUFFIX_FILE=$TESTCASE_DIR/dynamic.suffix - [ ! -f $DYNAMIC_SUFFIX_FILE ] && _exit "Missing '$DYNAMIC_SUFFIX_FILE' file.\nUse 'dynlibs/select.sh' to change the dynamic procedure and restart the ADML instances." + [ ! -f $DYNAMIC_SUFFIX_FILE ] && _exit "Missing '$DYNAMIC_SUFFIX_FILE' file.\nUse 'dynlibs/select.sh' to change the dynamic procedure and very important: RESTART the ADML instances." dynamic_suffix=( $(grep -v ^# $DYNAMIC_SUFFIX_FILE) ) # Multiple scenarios: @@ -220,6 +220,17 @@ else echo read dynamic_suffix while [ -z "$dynamic_suffix" ]; do read dynamic_suffix ; done + timeout=$(echo $dynamic_suffix | cut -d\| -f1) + if [ "$timeout" = "0" ] + then + echo + echo "Zero-timeout will configure 'auto-reset' as 'hard' in order" + echo " to reset properly the test cases in further cycles ..." + ./operation.sh "test|auto-reset|hard" >/dev/null + echo + echo "Press ENTER to continue ..." + read dummy + fi fi fi