1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
11 from yardstick.benchmark.scenarios import base
13 LOG = logging.getLogger(__name__)
16 class Dummy(base.Scenario):
19 __scenario_type__ = "Dummy"
21 def __init__(self, scenario_cfg, context_cfg):
22 self.scenario_cfg = scenario_cfg
23 self.context_cfg = context_cfg
24 self.setup_done = False
28 self.setup_done = True
30 def run(self, result):
31 """execute the benchmark"""
32 if not self.setup_done:
35 result["hello"] = "yardstick"
36 LOG.info("Dummy echo hello yardstick!")