mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-22 04:49:00 +00:00
androbench: added early check for root on device; updated description with link to website.
This commit is contained in:
parent
b653beacd3
commit
5aae705172
@ -13,19 +13,28 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
from wlauto import AndroidUiAutoBenchmark
|
from wlauto import AndroidUiAutoBenchmark
|
||||||
|
from wlauto.exceptions import WorkloadError
|
||||||
|
|
||||||
|
|
||||||
class Androbench(AndroidUiAutoBenchmark):
|
class Androbench(AndroidUiAutoBenchmark):
|
||||||
name = 'androbench'
|
name = 'androbench'
|
||||||
description = """Androbench measures the storage performance of device"""
|
description = """
|
||||||
|
Measures the storage performance of an Android device.
|
||||||
|
|
||||||
|
Website: http://www.androbench.org/wiki/AndroBench
|
||||||
|
"""
|
||||||
package = 'com.andromeda.androbench2'
|
package = 'com.andromeda.androbench2'
|
||||||
activity = '.main'
|
activity = '.main'
|
||||||
run_timeout = 10 * 60
|
run_timeout = 10 * 60
|
||||||
|
|
||||||
|
def initialize(self, context):
|
||||||
|
if not self.device.is_rooted:
|
||||||
|
raise WorkloadError('Androbench workload only works on rooted devices.')
|
||||||
|
|
||||||
def update_result(self, context):
|
def update_result(self, context):
|
||||||
super(Androbench, self).update_result(context)
|
super(Androbench, self).update_result(context)
|
||||||
dbn = 'databases/history.db'
|
dbn = 'databases/history.db'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user