From 001d1ebc3ea97bac2c3d8839987aa6897541dc79 Mon Sep 17 00:00:00 2001 From: shubham-yb Date: Wed, 5 Mar 2025 12:20:30 +0000 Subject: [PATCH] Ignore Voyager version in the HTML report --- 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)