mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
framework/workload: Return path of pulled apk
`pull_apk` now returns the path to the apk it pulled from the device so WA can keep track of it and avoid conflicts with other apks present on the host.
This commit is contained in:
parent
c1cc18df2f
commit
1cb8f1670a
@ -783,6 +783,8 @@ class PackageHandler(object):
|
||||
raise WorkloadError(message.format(package))
|
||||
package_info = self.target.get_package_info(package)
|
||||
self.target.pull(package_info.apk_path, self.owner.dependencies_directory)
|
||||
apk_name = self.target.path.basename(package_info.apk_path)
|
||||
return os.path.join(self.owner.dependencies_directory, apk_name)
|
||||
|
||||
def teardown(self):
|
||||
self.target.execute('am force-stop {}'.format(self.apk_info.package))
|
||||
|
Loading…
x
Reference in New Issue
Block a user