From 8147b70f075e8a6f838663ef3b3e25737fc990f3 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 10 Oct 2023 16:12:13 +0530 Subject: [PATCH] qa: log stdout for commands being run through negtest_ceph_cmd Signed-off-by: Rishabh Dave (cherry picked from commit bd4cb58f7abca4fa20ec283f675f31d1ede14752) --- qa/tasks/ceph_test_case.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.39.5