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:
1 parent
83f49db49e
commit
1bb28cf141
1 file changed
+3
-1
+3
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user