From: Dhairya Parmar Date: Mon, 16 Oct 2023 13:46:04 +0000 (+0530) Subject: qa: fix error reporting string in assert_cluster_log X-Git-Tag: v19.3.0~216^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F54041%2Fhead;p=ceph.git qa: fix error reporting string in assert_cluster_log Fixes: https://tracker.ceph.com/issues/63217 Signed-off-by: Dhairya Parmar --- diff --git a/qa/tasks/ceph_test_case.py b/qa/tasks/ceph_test_case.py index 649c0e53cf96..f5f1445a059b 100644 --- a/qa/tasks/ceph_test_case.py +++ b/qa/tasks/ceph_test_case.py @@ -255,7 +255,7 @@ class CephTestCase(unittest.TestCase, RunCephCmd): if present and not self.match(): log.error(f"Log output: \n{self.watcher_process.stdout.getvalue()}\n") - raise AssertionError(f"Expected log message found: '{expected_pattern}'") + raise AssertionError(f"Expected log message not found: '{expected_pattern}'") elif fail or (not present and self.match()): log.error(f"Log output: \n{self.watcher_process.stdout.getvalue()}\n") raise AssertionError(f"Unexpected log message found: '{expected_pattern}'")