Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore Voyager version in the HTML report test #2384

Merged
merged 1 commit into from
Mar 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading