]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: minor improvement caps_helper.py
authorRishabh Dave <ridave@redhat.com>
Tue, 3 Oct 2023 08:11:54 +0000 (13:41 +0530)
committerRishabh Dave <ridave@redhat.com>
Tue, 10 Oct 2023 11:08:19 +0000 (16:38 +0530)
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 <ridave@redhat.com>
qa/tasks/cephfs/caps_helper.py

index f083c788337aea699aa35867d0c8cf53e35cd831..75a40ac83fe8d860ba3707211a5aae294e0b48b6 100644 (file)
@@ -124,7 +124,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