1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB 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 ##############################################################################
10 Yardstick benchmark core.
13 from __future__ import print_function
17 """This class converts a parameter dictionary to an object."""
19 def __init__(self, kwargs):
21 self.inputfile = kwargs.get('inputfile')
22 self.task_args = kwargs.get('task-args')
23 self.task_args_file = kwargs.get('task-args-file')
24 self.keep_deploy = kwargs.get('keep-deploy')
25 self.parse_only = kwargs.get('parse-only')
26 self.output_file = kwargs.get('output-file', '/tmp/yardstick.out')
27 self.suite = kwargs.get('suite')
28 self.task_id = kwargs.get('task_id')
29 self.yaml_name = kwargs.get('yaml_name')
32 self.input_file = kwargs.get('input_file')
35 self.casename = kwargs.get('casename')
38 self.type = kwargs.get('type')