From: Sebastian Wagner Date: Thu, 5 Aug 2021 07:53:09 +0000 (+0200) Subject: cephadm: fix unit tests. X-Git-Tag: v17.1.0~1197^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42664%2Fhead;p=ceph.git cephadm: fix unit tests. Fixes AttributeError: 'FakePipeWrapper' object has no attribute 'readable' Signed-off-by: Sebastian Wagner --- diff --git a/src/cephadm/tests/fixtures.py b/src/cephadm/tests/fixtures.py index b8f585c653a6..348568379bc5 100644 --- a/src/cephadm/tests/fixtures.py +++ b/src/cephadm/tests/fixtures.py @@ -70,6 +70,7 @@ def cephadm_fs( with mock.patch('os.fchown'), \ mock.patch('os.fchmod'), \ + mock.patch('platform.processor', return_value='x86_64'), \ mock.patch('cephadm.extract_uid_gid', return_value=(uid, gid)): fs.create_dir(cd.DATA_DIR)