1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 02:41:11 +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:
Marc Bonnici 2018-03-19 09:34:22 +00:00 committed by setrofim
parent c1cc18df2f
commit 1cb8f1670a

View File

@ -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))