From e58189762a62142c31ccb042f31febc27af5dfae Mon Sep 17 00:00:00 2001 From: Shubham Dabriwala Date: Wed, 5 Mar 2025 19:11:07 +0530 Subject: [PATCH] Ignore Voyager version in the HTML report tests (#2384) --- migtests/scripts/compare-html-reports.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/migtests/scripts/compare-html-reports.py b/migtests/scripts/compare-html-reports.py index fabeb1b57..a3113d786 100755 --- a/migtests/scripts/compare-html-reports.py +++ b/migtests/scripts/compare-html-reports.py @@ -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)