TT#104401 check.sh: changes for sip-tester 3.6.0

* Automatic filenames (trace files, error files, etc..)
  are now created in the current working directory instead
  of in the directory of the scenario file.
* https://github.com/SIPp/sipp/releases/tag/v3.6.0

Change-Id: I06ad4c7196ea9087f5e04e289f09baf927ed1e01
mr9.3.1
Victor Seva 5 years ago
parent 3c25d4446a
commit e9190e9d87

@ -400,7 +400,7 @@ error_helper() {
echo "$(date) - Deleting domain:${DOMAIN}"
delete_voip "${DOMAIN}"
fi
find "${SCEN_CHECK_DIR}/" -type f -name 'sipp_scenario*errors.log' \
find "${BASE_DIR}/" -maxdepth 1 -type f -name 'sipp_scenario*errors.log' \
-exec mv {} "${LOG_DIR}" \;
stop_capture
check_rtp
@ -655,8 +655,8 @@ run_sipp() {
copy_logs
# if any scenario has a log... error
if [ "$(find "${SCEN_CHECK_DIR}" -name 'sipp_scenario*errors.log' 2>/dev/null|wc -l)" -ne 0 ]; then
find "${SCEN_CHECK_DIR}/" -type f -name 'sipp_scenario*errors.log' -exec mv {} "${LOG_DIR}" \;
if [ "$(find "${BASE_DIR}" -maxdepth 1 -name 'sipp_scenario*errors.log' 2>/dev/null|wc -l)" -ne 0 ]; then
find "${BASE_DIR}/" -maxdepth 1 -type f -name 'sipp_scenario*errors.log' -exec mv {} "${LOG_DIR}" \;
status=1
fi

Loading…
Cancel
Save