From 1dfbe9e44cbd5439b406c1b6e6a1025dfd96688c Mon Sep 17 00:00:00 2001 From: James Hartley Date: Wed, 6 Apr 2016 10:53:08 +0100 Subject: [PATCH] Fix to install APKs with whitespace in their path name --- wlauto/common/android/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/common/android/device.py b/wlauto/common/android/device.py index f5dab842..f2cf52c5 100644 --- a/wlauto/common/android/device.py +++ b/wlauto/common/android/device.py @@ -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))