]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: fix error reporting string in assert_cluster_log
authorDhairya Parmar <dparmar@redhat.com>
Mon, 16 Oct 2023 13:46:04 +0000 (19:16 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Wed, 31 Jan 2024 09:31:16 +0000 (15:01 +0530)
Fixes: https://tracker.ceph.com/issues/63217
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit 76755dad4cee1bcf8283652296c84d436f766374)

qa/tasks/ceph_test_case.py

index 3f355825c6f3806bd5425b5194db41efb4e96b5f..d3494f58b0b7234220b4924ca05b2783e21363be 100644 (file)
@@ -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}'")