From d23bd897368eb13b68042e02cd4f878b6fbadc5f Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 10 Oct 2023 16:09:20 +0530 Subject: [PATCH] qa: minor improvement in ceph_test_case.py When two values (say x and y) are being printed because assert for equality of both failed (assert x == y), print both the values on a new line. Signed-off-by: Rishabh Dave (cherry picked from commit edec8f35abc2d7bb6aef68ea9b841e33e12012dd) --- qa/tasks/ceph_test_case.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/ceph_test_case.py b/qa/tasks/ceph_test_case.py index 649c0e53cf9..8926e5c7e1a 100644 --- a/qa/tasks/ceph_test_case.py +++ b/qa/tasks/ceph_test_case.py @@ -76,8 +76,8 @@ class RunCephCmd: proc_stderr = proc.stderr.getvalue().lower() msg = ('didn\'t find any of the expected string in stderr.\n' - f'expected string: {exp_errmsgs}\n' - f'received error message: {proc_stderr}\n' + f'expected string -\n{exp_errmsgs}\n' + f'received error message -\n{proc_stderr}\n' 'note: received error message is converted to lowercase') for e in exp_errmsgs: if e in proc_stderr: -- 2.39.5