From: Rishabh Dave Date: Tue, 10 Oct 2023 10:42:13 +0000 (+0530) Subject: qa: log stdout for commands being run through negtest_ceph_cmd X-Git-Tag: v18.2.5~715^2~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8147b70f075e8a6f838663ef3b3e25737fc990f3;p=ceph.git qa: log stdout for commands being run through negtest_ceph_cmd Signed-off-by: Rishabh Dave (cherry picked from commit bd4cb58f7abca4fa20ec283f675f31d1ede14752) --- diff --git a/qa/tasks/ceph_test_case.py b/qa/tasks/ceph_test_case.py index 8926e5c7e1a5d..877f79d06a3b3 100644 --- a/qa/tasks/ceph_test_case.py +++ b/qa/tasks/ceph_test_case.py @@ -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()