Skip the SIVP test when its project fixture is absent

projects/ is gitignored, so a fresh clone has no projects/_sivp__/sn-article.tex. Return early like the neighbouring front-matter test instead of panicking on the missing file.
This commit is contained in:
gloamxun committed 2026-10-26 22:03:25 +08:00
1 parent 83f49db49e
commit 1bb28cf141
1 file changed
+3 -1
+3 -1
View File
@@ -1923,7 +1923,9 @@ fn sivp_frontmatter_survives_the_journal_layout() {
#[test]
fn sivp_project_previews_and_exports_a_pdf() {
let source = std::fs::read_to_string("projects/_sivp__/sn-article.tex").unwrap();
let Ok(source) = std::fs::read_to_string("projects/_sivp__/sn-article.tex") else {
return;
};
let value = fresh_preview(&source, "projects/_sivp__/sn-article.tex");
assert_eq!(value["status"], "ok", "{value}");
assert!(!pages(&value).is_empty());