From 1aa65df64c86cc886eaf22114646935c2d9be77a Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Tue, 7 Jul 2020 10:26:47 +0200 Subject: [PATCH] TT#81700 check.sh: produce flow.diff and scenario.sip files on error Change-Id: Ia101b6988da718adf0ad93be020bfa0891266d70 --- bin/check.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/check.sh b/bin/check.sh index f459997d..51dca98f 100755 --- a/bin/check.sh +++ b/bin/check.sh @@ -153,6 +153,14 @@ check_test() { fi ERR_FLAG=1 + if [ -x "${BIN_DIR}/show_flow_diff.pl" ] ; then + echo "$(date) - Generating flow diff: ${dest}.diff" + "${BIN_DIR}/show_flow_diff.pl" "$1" "$2" > "${dest}.diff" + fi + if [ -x "${BIN_DIR}/show_sip.pl" ] ; then + echo "$(date) - Generating: ${dest}.sip" + "${BIN_DIR}/show_sip.pl" "$2" > "${dest}.sip" + fi if ( ! "${GRAPH}" ) && "${GRAPH_FAIL}" ; then echo "$(date) - Generating flow image: ${dest}.png" # In any failure case only the graph related to the original json file will be created