Pick the last word in the awk as score for handling partial index score and index score
Change-Id: Ida56b704b14c7c27156f57590bb1ea8532650f90
JIRA: YARDSTICK-1622
Signed-off-by: Deepanshu Bhatia <deepanshu@voereir.com>
# write the result to stdout in json format
output_json()
{
- single_score=$(awk '/Score/{print $7}' $OUTPUT_FILE | head -1 )
- parallel_score=$(awk '/Score/{print $7}' $OUTPUT_FILE | tail -1 )
+ single_score=$(awk '/Score/{print $NF}' $OUTPUT_FILE | head -1 )
+ parallel_score=$(awk '/Score/{print $NF}' $OUTPUT_FILE | tail -1 )
echo -e "{ \
\"single_score\":\"$single_score\", \
\"parallel_score\":\"$parallel_score\" \