From 0a2afdfd844124864219fa182913c859640c7b17 Mon Sep 17 00:00:00 2001 From: Sebastian Goscik Date: Fri, 26 Aug 2016 17:12:24 +0100 Subject: [PATCH] AndroidDevice: Added `-rf` to delete_files This allows it to delete folders and makes it consistend with LinuxDevice. --- 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 c4e65382..f338cd90 100644 --- a/wlauto/common/android/device.py +++ b/wlauto/common/android/device.py @@ -342,7 +342,7 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223 def delete_file(self, filepath, as_root=False): # pylint: disable=W0221 self._check_ready() - adb_shell(self.adb_name, "rm '{}'".format(filepath), as_root=as_root, timeout=self.default_timeout) + adb_shell(self.adb_name, "rm -rf '{}'".format(filepath), as_root=as_root, timeout=self.default_timeout) def file_exists(self, filepath): self._check_ready()