1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 19:01:15 +01:00

Change device pull to handle root,and renamed local file as well history.db from results.db

This commit is contained in:
Pawan Bathe 2015-08-20 21:25:55 +05:30
parent 8513304aeb
commit f44fd9df7a

View File

@ -30,8 +30,8 @@ class Androbench(AndroidUiAutoBenchmark):
super(Androbench, self).update_result(context)
dbn = 'databases/history.db'
db = self.device.path.join(self.device.package_data_directory, self.package, dbn)
host_results = os.path.join(context.output_directory, 'results.db')
self.device.pull_file(db, host_results)
host_results = os.path.join(context.output_directory, 'history.db')
self.device.pull_file(db, host_results, as_root=True)
qs = 'select * from history'
conn = sqlite3.connect(host_results)
c = conn.cursor()