summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Khare <amit.khare@linaro.org>2014-08-19 19:57:31 +0530
committerAmit Khare <amit.khare@linaro.org>2014-08-19 19:57:31 +0530
commit79ff44504404bdfe4cdfdfd2279fefe1e8ef3b6d (patch)
tree41aff85ef6e88025567936740b825cc3a2227543
parentf5640a2c4350708d57d1089d15d0fe57fc299085 (diff)
fixed GFXBench3
-rw-r--r--GFXBench3/README.txt~1
-rw-r--r--GFXBench3/vc.py8
2 files changed, 4 insertions, 5 deletions
diff --git a/GFXBench3/README.txt~ b/GFXBench3/README.txt~
deleted file mode 100644
index 579ec6d..0000000
--- a/GFXBench3/README.txt~
+++ /dev/null
@@ -1 +0,0 @@
-GFXBench3 3D benchmark won't work without Internet connection and download around 113 MB of data to run
diff --git a/GFXBench3/vc.py b/GFXBench3/vc.py
index b3a20f5..50ca7fd 100644
--- a/GFXBench3/vc.py
+++ b/GFXBench3/vc.py
@@ -11,8 +11,8 @@ def get_score_with_content_desc(vc, content_desc, offset=1):
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))
- print "Text :", score.getText()
-
+ call(['lava-test-case', content_desc, '--result', 'pass', '--measurement', score.getText())
+
kwargs1 = {'verbose': False, 'ignoresecuredevice': False}
device, serialno = ViewClient.connectToDeviceOrExit(**kwargs1)
kwargs2 = {'startviewserver': True, 'forceviewserveruse': False, 'autodump': False, 'ignoreuiautomatorkilled': True}
@@ -39,7 +39,7 @@ vc.dump(window='-1')
#Wait for download to finish
finished = False
while (not finished):
- time.sleep(1)
+ time.sleep(50)
try:
vc.dump(window='-1')
vc.findViewByIdOrRaise("android:id/content")
@@ -56,7 +56,7 @@ test.touch()
#Wait while benchmark is running
finished = False
while (not finished):
- time.sleep(1)
+ time.sleep(50)
try:
vc.dump(window='-1')
vc.findViewByIdOrRaise("com.glbenchmark.glbenchmark27:id/cell_result_maincolumn")