From 6bf31ef144d025d47dd8fb3770190b3fb42eed2d Mon Sep 17 00:00:00 2001 From: QiLiang Date: Sat, 10 Oct 2015 17:39:22 +0800 Subject: 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 --- yardstick/benchmark/runners/base.py | 1 + 1 file changed, 1 insertion(+) (limited to 'yardstick/benchmark/runners') 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) -- cgit 1.2.3-korg