From: Rishabh Dave Date: Tue, 10 Oct 2023 10:39:20 +0000 (+0530) Subject: qa: minor improvement in ceph_test_case.py X-Git-Tag: v19.0.0~123^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=edec8f35abc2d7bb6aef68ea9b841e33e12012dd;p=ceph.git 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 --- diff --git a/qa/tasks/ceph_test_case.py b/qa/tasks/ceph_test_case.py index 649c0e53cf96..8926e5c7e1a5 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: