Skip to content

Commit

Permalink
ignore injected errors in old fdb versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mpilman committed Oct 25, 2022
1 parent f88b8e2 commit ad28884
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/TestHarness2/test_harness/summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,9 @@ def parse_warning(attrs: Dict[str, str]):
self.handler.add_handler(('Severity', '30'), parse_warning)

def parse_error(attrs: Dict[str, str]):
if 'ErrorIsInjectedFault' in attrs and attrs['ErrorIsInjectedFault'].lower() in ['1', 'true']:
# ignore injected errors. In newer fdb versions these will have a lower severity
return
self.errors += 1
self.error = True
if self.errors > config.max_errors:
Expand Down

0 comments on commit ad28884

Please sign in to comment.