Actions
Bug #63217
openqa: fix error reporting string in assert_cluster_log
% Done:
0%
Source:
Development
Tags:
backport_processed
Backport:
quincy,reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
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}'")
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}'")
above code [0] is a bit erroneous since it says 'Expected log message found' if the expected_pattern is expected to be present but the match is not found. Not a major thing; just a addition of 'not' and we are good to go
[0] https://github.com/ceph/ceph/blob/main/qa/tasks/ceph_test_case.py#L256-L261
Actions