diff options
author | Martin Klozik <martinx.klozik@intel.com> | 2017-11-07 09:10:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-11-07 09:10:43 +0000 |
commit | 1653f5d6a12febed50f138076dcf8c191d9f24e6 (patch) | |
tree | 522d94038ac6eaa262a8b3ca2c6fa4704db12d79 /testcases | |
parent | 1cfdb4bfbdd1ee02e6ab8bce691084d5319d5410 (diff) | |
parent | 485ac777fd9cded7c145917bfcbe701276f3c855 (diff) |
Merge "load_gen: Supporting loading of load_gen via loader."
Diffstat (limited to 'testcases')
-rw-r--r-- | testcases/testcase.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/testcases/testcase.py b/testcases/testcase.py index 01b3a975..3d9ffe4b 100644 --- a/testcases/testcase.py +++ b/testcases/testcase.py @@ -131,11 +131,6 @@ class TestCase(object): # check if test requires background load and which generator it uses self._load_cfg = cfg.get('Load', None) - if self._load_cfg and 'tool' in self._load_cfg: - self._loadgen = self._load_cfg['tool'] - else: - # background load is not requested, so use dummy implementation - self._loadgen = "Dummy" if self._frame_mod: self._frame_mod = self._frame_mod.lower() @@ -247,7 +242,7 @@ class TestCase(object): loader.get_collector_class(), self._results_dir, self.name) self._loadgen = component_factory.create_loadgen( - self._loadgen, + loader.get_loadgen_class(), self._load_cfg) self._output_file = os.path.join(self._results_dir, "result_" + self.name + |