mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 12:24:32 +00:00
Fixed issue reported by pep8 checkers
This commit is contained in:
parent
2d8b8ba799
commit
03a9470007
@ -20,8 +20,8 @@ import time
|
|||||||
|
|
||||||
from wlauto import AndroidUiAutoBenchmark
|
from wlauto import AndroidUiAutoBenchmark
|
||||||
|
|
||||||
class Androbench(AndroidUiAutoBenchmark):
|
|
||||||
|
|
||||||
|
class Androbench(AndroidUiAutoBenchmark):
|
||||||
name = 'androbench'
|
name = 'androbench'
|
||||||
description = """Androbench measures the storage performance of device"""
|
description = """Androbench measures the storage performance of device"""
|
||||||
package = 'com.andromeda.androbench2'
|
package = 'com.andromeda.androbench2'
|
||||||
@ -30,12 +30,14 @@ class Androbench(AndroidUiAutoBenchmark):
|
|||||||
|
|
||||||
def update_result(self, context):
|
def update_result(self, context):
|
||||||
super(Androbench, self).update_result(context)
|
super(Androbench, self).update_result(context)
|
||||||
os.system('adb shell sqlite3 /data/data/com.andromeda.androbench2/databases/history.db "select * from history" > results.raw')
|
db = '/data/data/com.andromeda.androbench2/databases/history.db'
|
||||||
fhresults=open("results.raw","rb")
|
qs = 'select * from history'
|
||||||
results=fhresults.readlines()[0].split('|')
|
res = 'results.raw'
|
||||||
|
os.system('adb shell sqlite3 %s "%s" > %s' % (db, qs, res))
|
||||||
|
fhresults = open("results.raw", "rb")
|
||||||
|
results = fhresults.readlines()[0].split('|')
|
||||||
context.result.add_metric('Sequential Read ', results[8], 'MB/s')
|
context.result.add_metric('Sequential Read ', results[8], 'MB/s')
|
||||||
context.result.add_metric('Sequential Write ', results[9] , 'MB/s')
|
context.result.add_metric('Sequential Write ', results[9], 'MB/s')
|
||||||
context.result.add_metric('Random Read ', results[10], 'MB/s')
|
context.result.add_metric('Random Read ', results[10], 'MB/s')
|
||||||
context.result.add_metric('Random Write ', results[12], 'MB/s')
|
context.result.add_metric('Random Write ', results[12], 'MB/s')
|
||||||
os.system('rm results.raw')
|
os.system('rm results.raw')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user