From: Sebastian Wagner Date: Thu, 5 Aug 2021 07:53:09 +0000 (+0200) Subject: cephadm: fix unit tests. X-Git-Tag: v16.2.6~54^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e634628085d637fdf7f223a794a4e9cb3684adfb;p=ceph.git cephadm: fix unit tests. Fixes AttributeError: 'FakePipeWrapper' object has no attribute 'readable' Signed-off-by: Sebastian Wagner (cherry picked from commit 61cfaec7002caadb3b4e09d672919ed159853311) --- 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)