1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +00:00

AndroidDevice: Added -rf to delete_files

This allows it to delete folders and makes it consistend with LinuxDevice.
This commit is contained in:
Sebastian Goscik 2016-08-26 17:12:24 +01:00
parent 530714c61c
commit 0a2afdfd84

View File

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