mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
Change device pull to handle root,and renamed local file as well history.db from results.db
This commit is contained in:
parent
8513304aeb
commit
f44fd9df7a
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user