Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix output parsing of Unixbench
[yardstick.git]
/
yardstick
/
benchmark
/
scenarios
/
compute
/
unixbench_benchmark.bash
diff --git
a/yardstick/benchmark/scenarios/compute/unixbench_benchmark.bash
b/yardstick/benchmark/scenarios/compute/unixbench_benchmark.bash
index
9f18048
..
0f0122e
100644
(file)
--- 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()
{
# 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\" \
echo -e "{ \
\"single_score\":\"$single_score\", \
\"parallel_score\":\"$parallel_score\" \