From dadf3bdefff6c38d7f64d7ae4b14fbaca66ab96a Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Thu, 2 Jun 2022 15:02:26 -0700 Subject: [PATCH] rustdoc: add channel normalization to htmldocck.py --- src/etc/htmldocck.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/etc/htmldocck.py b/src/etc/htmldocck.py index 269b6868e29..5eb70ab13db 100644 --- a/src/etc/htmldocck.py +++ b/src/etc/htmldocck.py @@ -423,6 +423,8 @@ def check_snapshot(snapshot_name, actual_tree, normalize_to_text): else: actual_str = flatten(actual_tree) + expected_str = expected_str.replace("{{channel}}", channel) + # Conditions: # 1. Is --bless # 2. Are actual and expected tree different