]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: minor improvement in ceph_test_case.py
authorRishabh Dave <ridave@redhat.com>
Tue, 10 Oct 2023 10:39:20 +0000 (16:09 +0530)
committerRishabh Dave <ridave@redhat.com>
Sat, 6 Apr 2024 10:14:16 +0000 (15:44 +0530)
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 <ridave@redhat.com>
(cherry picked from commit edec8f35abc2d7bb6aef68ea9b841e33e12012dd)

qa/tasks/ceph_test_case.py

index 649c0e53cf96b2db3ed175adbfafb62dbb4dca3c..8926e5c7e1a5da7783190b0e9062eafaf6e6d30a 100644 (file)
@@ -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: