summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBotao Sun <botao.sun@linaro.org>2015-01-23 10:43:56 +1100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2015-01-28 20:55:18 +0000
commitc8125a3a931f0a11205dc19df425d550709d080f (patch)
tree167c0a081fd2f79b17972648a0d683c8ab247a97
parent391f51c83d1b900b0625e54d5aac68249d7861c5 (diff)
Add Default Measurement Unit for sqlite.
Using "points" as the default measurement unit for sqlite Test. Signed-off by: Botao Sun <botao.sun@linaro.org> Change-Id: Id869c5a017a2c8e9c8cea46f1de7c3fc67dcde92
-rwxr-xr-x[-rw-r--r--]sqlite/vc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlite/vc.py b/sqlite/vc.py
index 25012a6..9295862 100644..100755
--- a/sqlite/vc.py
+++ b/sqlite/vc.py
@@ -6,12 +6,13 @@ from subprocess import call
from com.dtmilano.android.viewclient import ViewClient, ViewNotFoundException
+default_unit = 'points'
def get_score_with_text(vc, text, offset=1):
score_view = vc.findViewWithTextOrRaise(text)
score_uid = score_view.getUniqueId()
uid = int(re.search("id/no_id/(?P<uid>\d+)", score_uid).group('uid'))
score = vc.findViewByIdOrRaise("id/no_id/%s" % (uid + offset))
- call(['lava-test-case', text.strip(), '--result', 'pass', '--measurement', score.getText().strip()])
+ call(['lava-test-case', text.strip(), '--result', 'pass', '--measurement', score.getText().strip(), '--units', default_unit])
kwargs1 = {'verbose': False, 'ignoresecuredevice': False}
device, serialno = ViewClient.connectToDeviceOrExit(**kwargs1)
@@ -45,4 +46,3 @@ get_score_with_text(vc, "Select 15000 Statements ")
get_score_with_text(vc, "Delete 200 Statments ")
get_score_with_text(vc, "Delete 15000 Statments in Transaction ")
get_score_with_text(vc, "Overall Avg QPS ")
-