From: Patrick Donnelly Date: Tue, 23 Mar 2021 14:37:27 +0000 (-0700) Subject: qa: improve assertion check to aid debugging X-Git-Tag: v17.1.0~2320^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=25a513da061111a4eed11e69df5107279e41e351;p=ceph.git qa: improve assertion check to aid debugging Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/cephfs/test_snap_schedules.py b/qa/tasks/cephfs/test_snap_schedules.py index f0e5a342368b..2a19d06e64c2 100644 --- a/qa/tasks/cephfs/test_snap_schedules.py +++ b/qa/tasks/cephfs/test_snap_schedules.py @@ -106,7 +106,8 @@ class TestSnapSchedules(CephFSTestCase): self.remove_cbks.remove(cbk) def assert_if_not_verified(self): - self.assertTrue(len(self.create_cbks) == 0 and len(self.remove_cbks) == 0) + self.assertListEqual(self.create_cbks, []) + self.assertListEqual(self.remove_cbks, []) def verify(self, dir_path, max_trials): trials = 0