1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-03-22 10:38:37 +00:00

Fix to install APKs with whitespace in their path name

This commit is contained in:
James Hartley 2016-04-06 10:53:08 +01:00
parent ff5f48b7e7
commit 1dfbe9e44c

View File

@ -357,7 +357,7 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223
self._check_ready()
ext = os.path.splitext(filepath)[1].lower()
if ext == '.apk':
return adb_command(self.adb_name, "install {}".format(filepath), timeout=timeout)
return adb_command(self.adb_name, "install '{}'".format(filepath), timeout=timeout)
else:
raise DeviceError('Can\'t install {}: unsupported format.'.format(filepath))