From 0b637983b9e4161523af60e7aeae3437484b10cc Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 3 Oct 2023 13:41:54 +0530 Subject: [PATCH] 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) --- qa/tasks/cephfs/caps_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5