Skip to content
Snippets Groups Projects

New parser

Merged Domenico Giordano requested to merge new_parser into qa-build-cms-flowsim
2 files
+ 5
10
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -14,17 +14,12 @@ function parseResults(){
# #-----------------------
# Parse results (bash)
#-----------------------
echo "[parseResults] bash parser starting"
# Parsing Event Throughput: xxxx ev/s
resJSON=`grep -h 'Total throughput:' proc_*/out_*.log | sed -e "s@Total throughput:\s*\([ 0-9\.]*\)\s*objects/second@\1@" | awk \
'BEGIN{sum=0;}{sum+=$1;} END{ printf "{\"wl-scores\": {\"flowsim\": %.4f}}", sum}' || (echo "{}"; return 1)`
echo "[parseResults] python parser starting"
# Call the Python script
python3 ${parseResultsDir}/parseResults.py "$baseWDir"
shstatus=$?
[ "$shstatus" != "0" ] && return $shstatus
#-----------------------
# Generate summary
#-----------------------
echo "[parseResults] generate report"
echo "$resJSON" > $baseWDir/parser_output.json
#-----------------------
# Return status
#-----------------------
Loading