summaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2015-10-15 01:38:55 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-10-15 01:38:56 +0000
commit15e8300a8e85d5907c5ea90da505929b8ca85ca0 (patch)
treecf1f5ef582565133664ef69d200117927697bdaa /yardstick/benchmark
parent070076aea759b0ee1fff37572e75cba13a7bd714 (diff)
parentcd809cb6b8bd4bd5002538d107aea1fb8adb0584 (diff)
Merge "Support general configuration file"
Diffstat (limited to 'yardstick/benchmark')
-rw-r--r--yardstick/benchmark/runners/base.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/yardstick/benchmark/runners/base.py b/yardstick/benchmark/runners/base.py
index d8783f3c1..265e5d158 100644
--- a/yardstick/benchmark/runners/base.py
+++ b/yardstick/benchmark/runners/base.py
@@ -15,10 +15,14 @@ import time
log = logging.getLogger(__name__)
+from oslo_config import cfg
+
import yardstick.common.utils as utils
from yardstick.benchmark.scenarios import base as base_scenario
from yardstick.dispatcher.base import Base as DispatcherBase
+CONF = cfg.CONF
+
def _output_serializer_main(filename, queue):
'''entrypoint for the singleton subprocess writing to outfile
@@ -26,7 +30,7 @@ def _output_serializer_main(filename, queue):
messing up the output file.
'''
config = {}
- config["type"] = "File"
+ config["type"] = CONF.dispatcher.capitalize()
config["file_path"] = filename
dispatcher = DispatcherBase.get(config)