From: Rishabh Dave Date: Tue, 3 Oct 2023 08:11:54 +0000 (+0530) Subject: qa/cephfs: minor improvement caps_helper.py X-Git-Tag: v18.2.5~715^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0b637983b9e4161523af60e7aeae3437484b10cc;p=ceph.git qa/cephfs: minor improvement caps_helper.py When assert fails for equality of two variables and when both the variables are printed in error message, print each variable on a new line. Signed-off-by: Rishabh Dave (cherry picked from commit 6ac58b0a12324ea13c724cbba3107e1eae9a96c3) --- diff --git a/qa/tasks/cephfs/caps_helper.py b/qa/tasks/cephfs/caps_helper.py index e53ac7ea88040..80bc2137b3e5d 100644 --- a/qa/tasks/cephfs/caps_helper.py +++ b/qa/tasks/cephfs/caps_helper.py @@ -148,7 +148,7 @@ def get_fsnames_from_moncap(moncap): def assert_equal(first, second): - msg = f'Variables are not equal.\nfirst = {first}\nsecond = {second}' + msg = f'Variables are not equal.\nfirst -\n{first}\nsecond -\n{second}' assert first == second, msg