Merge "Adding python package requirement for VNF testing."
[yardstick.git] / yardstick / benchmark / core / __init__.py
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 #
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 ##############################################################################
9 from __future__ import print_function
10
11
12 class Param(object):
13
14     def __init__(self, kwargs):
15         # list
16         self.inputfile = kwargs.get('inputfile')
17         self.task_args = kwargs.get('task-args')
18         self.task_args_file = kwargs.get('task-args-file')
19         self.keep_deploy = kwargs.get('keep-deploy')
20         self.parse_only = kwargs.get('parse-only')
21         self.output_file = kwargs.get('output-file', '/tmp/yardstick.out')
22         self.suite = kwargs.get('suite')
23
24         # list
25         self.input_file = kwargs.get('input_file')
26
27         # list
28         self.casename = kwargs.get('casename')
29
30         # list
31         self.type = kwargs.get('type')
32
33
34 def print_hbar(barlen):
35     '''print to stdout a horizontal bar'''
36     print("+"),
37     print("-" * barlen),
38     print("+")