From 1bb28cf14183ae5eb3695faa7777d539c9e080ba Mon Sep 17 00:00:00 2001 From: GloamXun Date: Mon, 26 Oct 2026 22:03:25 +0800 Subject: [PATCH] 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. --- tests/typeset.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/typeset.rs b/tests/typeset.rs index 556108f..fd6155d 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -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());