]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: log stdout for commands being run through negtest_ceph_cmd
authorRishabh Dave <ridave@redhat.com>
Tue, 10 Oct 2023 10:42:13 +0000 (16:12 +0530)
committerRishabh Dave <ridave@redhat.com>
Sat, 6 Apr 2024 10:14:16 +0000 (15:44 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit bd4cb58f7abca4fa20ec283f675f31d1ede14752)

qa/tasks/ceph_test_case.py

index 8926e5c7e1a5da7783190b0e9062eafaf6e6d30a..877f79d06a3b35f79a132d72f2915b4d6563399c 100644 (file)
@@ -105,6 +105,8 @@ class RunCephCmd:
         # execution is needed to not halt on command failure because we are
         # conducting negative testing
         kwargs['check_status'] = False
+        # log stdout since it may contain something useful when command fails
+        kwargs['stdout'] = StringIO()
         # stderr is needed to check for expected error messages.
         kwargs['stderr'] = StringIO()