1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +00:00

sysfile_extractor: ignore exit code when removing directory at the end of the run.

On some systems the temporary directory may still be "busy" after WA is
don't with it. Since it's just an empty dir and it will be reused on the
subsequent runs; do check if rm -rf succeeded.
This commit is contained in:
Sergei Trofimov 2015-05-05 09:32:40 +01:00
parent a6ef53291b
commit e57c5fccb3

View File

@ -173,7 +173,8 @@ class SysfsExtractor(Instrument):
except (DeviceError, CalledProcessError):
# assume a directory but not mount point
pass
self.device.execute('rm -rf {}'.format(self.tmpfs_mount_point), as_root=True)
self.device.execute('rm -rf {}'.format(self.tmpfs_mount_point),
as_root=True, check_exit_code=False)
def validate(self):
if not self.tmpfs_mount_point: # pylint: disable=access-member-before-definition