aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepanshu Bhatia <deepanshu@voereir.com>2019-10-08 06:26:47 +0530
committerDeepanshu Bhatia <deepanshu@voereir.com>2019-10-08 06:26:47 +0530
commit31a83ec68537b1af46658d2fd415f53c7e8798fd (patch)
tree440db9cacbc329cadd1e8233c6d10d2d552fd282
parentf377ca166f1e0f81b685e3a76ef0287cdc011cd1 (diff)
Fix output parsing of Unixbench
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>
-rw-r--r--yardstick/benchmark/scenarios/compute/unixbench_benchmark.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/benchmark/scenarios/compute/unixbench_benchmark.bash b/yardstick/benchmark/scenarios/compute/unixbench_benchmark.bash
index 9f1804819..0f0122e51 100644
--- a/yardstick/benchmark/scenarios/compute/unixbench_benchmark.bash
+++ b/yardstick/benchmark/scenarios/compute/unixbench_benchmark.bash
@@ -25,8 +25,8 @@ run_unixbench()
# 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\" \