aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/dispatcher/base.py
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/dispatcher/base.py
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/dispatcher/base.py')
-rw-r--r--yardstick/dispatcher/base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/yardstick/dispatcher/base.py b/yardstick/dispatcher/base.py
index 28c4c1ae6..fe635b9d4 100644
--- a/yardstick/dispatcher/base.py
+++ b/yardstick/dispatcher/base.py
@@ -36,3 +36,7 @@ class Base(object):
@abc.abstractmethod
def record_result_data(self, data):
"""Recording result data interface."""
+
+ @abc.abstractmethod
+ def flush_result_data(self):
+ """Flush result data into permanent storage media interface."""