From bafef71e49c62f221ce421ac51b2b74c90afea34 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Wed, 13 Nov 2019 18:52:18 +0530 Subject: [PATCH] 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 --- qa/tasks/cephfs/test_cephfs_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/test_cephfs_shell.py b/qa/tasks/cephfs/test_cephfs_shell.py index 5882c1bb6bd51..151a1117edefa 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): -- 2.39.5