From e57c5fccb36dd63f3a94c061f1aa72078e754877 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Tue, 5 May 2015 09:32:40 +0100 Subject: [PATCH] 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. --- wlauto/instrumentation/misc/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wlauto/instrumentation/misc/__init__.py b/wlauto/instrumentation/misc/__init__.py index 37a8e5b8..a2da3594 100644 --- a/wlauto/instrumentation/misc/__init__.py +++ b/wlauto/instrumentation/misc/__init__.py @@ -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