From: Eduardo Ramos Testillano Date: Sun, 12 Mar 2017 02:54:32 +0000 (+0100) Subject: Control for no metadata X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=37d878ff070d97c2d116c78d3fc78b46c568991b;p=anna.git Control for no metadata --- diff --git a/example/diameter/pcapDecoder/tsharkDecoder.sh b/example/diameter/pcapDecoder/tsharkDecoder.sh index 3628318..816dea7 100755 --- a/example/diameter/pcapDecoder/tsharkDecoder.sh +++ b/example/diameter/pcapDecoder/tsharkDecoder.sh @@ -321,6 +321,10 @@ segments=( $(echo $to_delete) ) echo "Deleting superfluous buffers & metadata (${segments[*]}) ..." for s in ${segments[@]}; do rm -f $RESULTS_DIR/${s}.* ; done +# Basic checking: +ls $RESULTS_DIR/*.metadata >/dev/null 2>/dev/null +[ $? -ne 0 ] && { echo "No metadata generated !" ; exit 1 ; } + # Detecting Session-Id values: grep ^sessionid= $RESULTS_DIR/*.metadata 2>/dev/null | cut -d= -f2- | sort -u > $RESULTS_DIR/session-ids if [ -s $RESULTS_DIR/session-ids ]