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: v17.2.8~189^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fc830bcda4576d65d147e693899f296cecea7afa;p=ceph.git qa: fix error reporting string in assert_cluster_log Fixes: https://tracker.ceph.com/issues/63217 Signed-off-by: Dhairya Parmar (cherry picked from commit 76755dad4cee1bcf8283652296c84d436f766374) --- diff --git a/qa/tasks/ceph_test_case.py b/qa/tasks/ceph_test_case.py index 3f355825c6f..d3494f58b0b 100644 --- a/qa/tasks/ceph_test_case.py +++ b/qa/tasks/ceph_test_case.py @@ -141,7 +141,7 @@ class CephTestCase(unittest.TestCase): 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}'")