From 2ec410834b816d79600b94c80fc3eca781d4beaf Mon Sep 17 00:00:00 2001 From: ruchirguitar Date: Thu, 3 Dec 2026 21:37:52 +0530 Subject: [PATCH] xtask: the packaged-site test requires the Gujarati face only when craft-fonts has it --- xtask/src/web_fonts.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xtask/src/web_fonts.rs b/xtask/src/web_fonts.rs index 8ce093bd2b..391a3ee819 100644 --- a/xtask/src/web_fonts.rs +++ b/xtask/src/web_fonts.rs @@ -248,7 +248,10 @@ mod tests { assert_eq!(sha256::hex(&bytes), row[6], "{SERVED_URL}{file} differs from the manifest"); checked.push(e.family.to_owned()); } - assert!(checked.iter().any(|f| f == "Noto Sans Gujarati"), "the Gujarati face was not published: {checked:?}"); + // An older craft-fonts without the Gujarati face stays valid; one that has it must publish it. + if manifest.lines().any(|l| l.starts_with("Noto Sans Gujarati | Regular |")) { + assert!(checked.iter().any(|f| f == "Noto Sans Gujarati"), "the Gujarati face was not published: {checked:?}"); + } } #[test]