From: Rishabh Dave Date: Wed, 13 Nov 2019 13:22:18 +0000 (+0530) Subject: test_cephfs_shell: initialize stderr for run_cephfs_shell_cmd() X-Git-Tag: v15.1.0~893^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bafef71e49c62f221ce421ac51b2b74c90afea34;p=ceph.git test_cephfs_shell: initialize stderr for run_cephfs_shell_cmd() Since teuthology initializes stderr to None by default, absence of this breaks the tests accessing stderr of commands executed within the test when the execution is using teuthology. Fixes: https://tracker.ceph.com/issues/42806 Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/test_cephfs_shell.py b/qa/tasks/cephfs/test_cephfs_shell.py index 5882c1bb6bd5..151a1117edef 100644 --- a/qa/tasks/cephfs/test_cephfs_shell.py +++ b/qa/tasks/cephfs/test_cephfs_shell.py @@ -46,7 +46,7 @@ class TestCephFSShell(CephFSTestCase): log.info("Running command: {}".format(" ".join(args))) return mount_x.client_remote.run(args=args, stdout=StringIO(), - stdin=stdin) + stderr=StringIO(), stdin=stdin) def get_cephfs_shell_cmd_output(self, cmd, mount_x=None, opts=None, stdin=None):