diff options
Diffstat (limited to 'qtip/runner/case.py')
-rw-r--r-- | qtip/runner/case.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/qtip/runner/case.py b/qtip/runner/case.py new file mode 100644 index 00000000..eb3febc2 --- /dev/null +++ b/qtip/runner/case.py @@ -0,0 +1,17 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corp and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +from qtip.base.benchmark import Property +from qtip.spec.metric import MetricSpec + + +class Case(object): + def __init__(self, spec, paths=None): + self.metric_spec = MetricSpec(spec[Property.METRIC_SPEC], paths=paths) + self.config = spec[Property.CONFIG] |