]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix error reporting string in assert_cluster_log 54041/head
authorDhairya Parmar <dparmar@redhat.com>
Mon, 16 Oct 2023 13:46:04 +0000 (19:16 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Mon, 16 Oct 2023 13:46:04 +0000 (19:16 +0530)
Fixes: https://tracker.ceph.com/issues/63217
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
qa/tasks/ceph_test_case.py

index 649c0e53cf96b2db3ed175adbfafb62dbb4dca3c..f5f1445a059b286c4f3a5c59546da20b12082f7f 100644 (file)
@@ -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}'")