diff options
author | 2016-08-30 06:21:12 +0000 | |
---|---|---|
committer | 2016-08-30 06:21:12 +0000 | |
commit | 3b0bcece3e95a3e020d0cfd9014219a075502fb1 (patch) | |
tree | 7096568a439f7042997d1921b590fde61b3c4481 /utils/test/reporting/yardstick/scenarioResult.py | |
parent | 6f437cac140ea8995f680053a8361a0b05bdcdc8 (diff) | |
parent | f53fc8221faf7718d1cf060038ad3a23463b8398 (diff) |
Merge "Add the function of yardstick testcase reporter"
Diffstat (limited to 'utils/test/reporting/yardstick/scenarioResult.py')
-rw-r--r-- | utils/test/reporting/yardstick/scenarioResult.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/test/reporting/yardstick/scenarioResult.py b/utils/test/reporting/yardstick/scenarioResult.py new file mode 100644 index 000000000..743346adc --- /dev/null +++ b/utils/test/reporting/yardstick/scenarioResult.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +# +# 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 +# + + +class ScenarioResult(object): + def __init__(self, status, score=0): + self.status = status + self.score = score + + def getStatus(self): + return self.status + + def getScore(self): + return self.score |