1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +00:00

androbench: added early check for root on device; updated description with link to website.

This commit is contained in:
Sergei Trofimov 2015-08-21 09:37:53 +01:00
parent b653beacd3
commit 5aae705172

View File

@ -13,19 +13,28 @@
# limitations under the License.
#
import os
import sqlite3
from wlauto import AndroidUiAutoBenchmark
from wlauto.exceptions import WorkloadError
class Androbench(AndroidUiAutoBenchmark):
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'
activity = '.main'
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):
super(Androbench, self).update_result(context)
dbn = 'databases/history.db'