xtask: the packaged-site test requires the Gujarati face only when craft-fonts has it

This commit is contained in:
ruchirguitar committed 2026-12-03 21:37:52 +05:30
1 parent 4fd3d9f22d
commit 2ec410834b
1 file changed
+4 -1
+4 -1
View File
@@ -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]