Skip to content

Commit

Permalink
Ignore Voyager version in the HTML report
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-yb committed Mar 5, 2025
1 parent 5af1373 commit 001d1eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions migtests/scripts/compare-html-reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ def extract_paragraphs(soup):
if not skip_first_paragraph:
skip_first_paragraph = True
continue
# Skip paragraph that starts with "Database Version:" as it vary according to the environment
if p.find("strong") and "Database Version:" in p.get_text():

# Skip paragraphs that contain "Database Version:" or "Voyager Version:" as it vary according to the environment
if p.find("strong") and any(skip_text in p.get_text() for skip_text in ["Database Version:", "Voyager Version:"]):
continue

filtered_paragraphs.append(p)

return extract_and_normalize_texts(filtered_paragraphs)
Expand Down

0 comments on commit 001d1eb

Please sign in to comment.