aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/runners
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2015-10-10 17:39:22 +0800
committerHou Jingwen <houjingwen@huawei.com>2015-10-16 04:01:02 +0000
commit6bf31ef144d025d47dd8fb3770190b3fb42eed2d (patch)
treecdec869a5b36e33fee7e3aacee9f3eb54c14077e /yardstick/benchmark/runners
parent89655940e65a7e3fabe4fe8a2ca49527a3094221 (diff)
Use result_collection_api to store test result
Execute a sample task file from Yardstick, push the test results to MongodB provided by Releng using the common result api provided by Functest. Usage: 0) install yardstick 1) config yardstick mkdir /etc/yardstick cat << EOF >> /etc/yardstick/yardstick.conf [DEFAULT] debug = True dispatcher = http [dispatcher_http] timeout = 5 target = http://213.77.62.197/results EOF 2) run test yardstick task start sample/fio.yaml 3) fetch result from remote result_collection_api curl "http://213.77.62.197/results?case=Fio&installer=compass" JIRA: YARDSTICK-132 Change-Id: I0996c6487c1900704380feb895555057a3f184e9 Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'yardstick/benchmark/runners')
-rwxr-xr-xyardstick/benchmark/runners/base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yardstick/benchmark/runners/base.py b/yardstick/benchmark/runners/base.py
index c3fe6b104..cc8c93cb6 100755
--- a/yardstick/benchmark/runners/base.py
+++ b/yardstick/benchmark/runners/base.py
@@ -39,6 +39,7 @@ def _output_serializer_main(filename, queue):
# blocks until data becomes available
record = queue.get()
if record == '_TERMINATE_':
+ dispatcher.flush_result_data()
break
else:
dispatcher.record_result_data(record)