summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBotao Sun <botao.sun@linaro.org>2015-01-23 10:54:03 +1100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2015-01-23 15:20:01 +0000
commitfa6cfd15a2ac82f44b29988815bbcd0c4e6da564 (patch)
tree5116861e77b0ee17fe281c24582a435d449a5561
parentd138caf037b1894a5cb31c08b399afd84d4c2cdd (diff)
Add Default Measurement Unit for Vellamo 1.0.6.
Using "points" as the default measurement unit for Vellamo 1.0.6 Test. Signed-off by: Botao Sun <botao.sun@linaro.org> Change-Id: Iaa1d139cccbfd61c07a69a21067a7b8b7e72836c
-rwxr-xr-x[-rw-r--r--]vellamo/vc.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/vellamo/vc.py b/vellamo/vc.py
index b17bbfe..4450eb0 100644..100755
--- a/vellamo/vc.py
+++ b/vellamo/vc.py
@@ -13,6 +13,7 @@ class AllEntities:
#key is your entity, you can do whatever you want with it here
return ""
+default_unit = 'points'
def extract_scores(filename):
testf = open(filename, 'r')
@@ -43,7 +44,7 @@ def extract_scores(filename):
benchmark_dict['values'].update({key: value.strip()})
benchmarks.append(benchmark_dict)
- call(['lava-test-case', "Vellamo 1.0.6", '--result', 'pass', '--measurement', totalscore])
+ call(['lava-test-case', "Vellamo 1.0.6", '--result', 'pass', '--measurement', totalscore, '--units', default_unit])
for benchmark in benchmarks:
name = benchmark['name']
result = 'pass'
@@ -51,7 +52,7 @@ def extract_scores(filename):
result = 'fail'
for subbenchkey, subbenchvalue in benchmark['values'].items():
if subbenchkey != 'failed':
- call(['lava-test-case', "%s %s" % (name, subbenchkey), '--result', result, '--measurement', subbenchvalue])
+ call(['lava-test-case', "%s %s" % (name, subbenchkey), '--result', result, '--measurement', subbenchvalue, '--units', default_unit])
kwargs1 = {'verbose': True, 'ignoresecuredevice': False}
device, serialno = ViewClient.connectToDeviceOrExit(**kwargs1)