mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 03:12:34 +01: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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user