]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test_cephfs_shell: initialize stderr for run_cephfs_shell_cmd() 31626/head
authorRishabh Dave <ridave@redhat.com>
Wed, 13 Nov 2019 13:22:18 +0000 (18:52 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 14 Nov 2019 08:24:14 +0000 (13:54 +0530)
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 <ridave@redhat.com>
qa/tasks/cephfs/test_cephfs_shell.py

index 5882c1bb6bd513361b905f06fb96ca7790219f1f..151a1117edefaf9c354116f869165f5aed9d8cac 100644 (file)
@@ -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):