From 7ac76b0398788d686ee5d202e88c9930331ac561 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Fri, 29 Jul 2022 14:46:16 +0200 Subject: [PATCH] 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 --- run_tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 7f86a3e8..3c91bab0 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -163,14 +163,14 @@ fix_retransmissions() { continue fi # 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" mv -f "${next_json_file}" "${next_json_file}_retransmission" RETRANS_ISSUE=true continue fi # 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" mv -f "${next_json_file}" "${next_json_file}_retransmission" RETRANS_ISSUE=true