The mount.cleanup method will remove the mount point. This `rm -rf` will
always fail (with exit status 0).
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
8e7a89009c41570e9f87f57d92d519b7c49d7706)
Conflicts:
qa/tasks/cephfs/fuse_mount.py
Notes: convert to cleanup call.
cwd=self.test_dir,
stderr=stderr,
timeout=(60*5),
- check_status=False,
)
except CommandFailedError:
if b"No such file or directory" in stderr.getvalue():
except CommandFailedError:
pass
- # Indiscriminate, unlike the touchier cleanup()
- self.client_remote.run(
- args=[
- 'rm',
- '-rf',
- self.mountpoint,
- ],
- cwd=self.test_dir,
- timeout=(60*5)
- )
+ return self.cleanup()
def _asok_path(self):
return "/var/run/ceph/ceph-client.{0}.*.asok".format(self.client_id)