TT#81700 run_tests.sh: don't use show_sip.pl to detect retransmissions

loading the whole file is taking too much resources

Change-Id: I50f34f0f7ebe1d755a7f59c2e7efb8e66e4959d6
mr11.0
Victor Seva 4 years ago
parent aea373e858
commit 7ac76b0398

@ -163,14 +163,14 @@ fix_retransmissions() {
continue continue
fi fi
# Check if both sip_in and Sip_out are equals # Check if both sip_in and Sip_out are equals
if ( diff -q -u <("${BIN_DIR}/show_sip.pl" "${json_file}") <("${BIN_DIR}/show_sip.pl" "${next_json_file}") &> /dev/null ) ; then if ( diff -q -u <(tail -n3 "${json_file}") <(tail -n3 "${next_json_file}") &> /dev/null ) ; then
echo "$(date) - - - $(basename "${next_json_file}") seems a retransmission of $(basename "${json_file}") (case 1) ---> renaming the file in $(basename "${next_json_file}")_retransmission" echo "$(date) - - - $(basename "${next_json_file}") seems a retransmission of $(basename "${json_file}") (case 1) ---> renaming the file in $(basename "${next_json_file}")_retransmission"
mv -f "${next_json_file}" "${next_json_file}_retransmission" mv -f "${next_json_file}" "${next_json_file}_retransmission"
RETRANS_ISSUE=true RETRANS_ISSUE=true
continue continue
fi fi
# Check if only sip_in is equal # Check if only sip_in is equal
if ( diff -q -u <("${BIN_DIR}/show_sip.pl" -i "${json_file}" | sed -n 1p) <("${BIN_DIR}/show_sip.pl" -i "${next_json_file}") &> /dev/null ) ; then if ( diff -q -u <(tail -n3 "${json_file}" | sed -n 1p) <(tail -n3 "${next_json_file}" | sed -n 1p) &> /dev/null ) ; then
echo "$(date) - - - $(basename "${next_json_file}") seems a retransmission of $(basename "${json_file}") (case 2) ---> renaming the file in $(basename "${next_json_file}")_retransmission" echo "$(date) - - - $(basename "${next_json_file}") seems a retransmission of $(basename "${json_file}") (case 2) ---> renaming the file in $(basename "${next_json_file}")_retransmission"
mv -f "${next_json_file}" "${next_json_file}_retransmission" mv -f "${next_json_file}" "${next_json_file}_retransmission"
RETRANS_ISSUE=true RETRANS_ISSUE=true

Loading…
Cancel
Save