From 2a8c7b65d5abd177a38422d8c77e85a478c27f09 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 01:35:18 +0100 Subject: tests: skip the piper smoke test when models are absent --- tests/tts_smoke.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests/tts_smoke.rs') diff --git a/tests/tts_smoke.rs b/tests/tts_smoke.rs index e98d56d..6ec4a1d 100644 --- a/tests/tts_smoke.rs +++ b/tests/tts_smoke.rs @@ -8,8 +8,14 @@ fn piper_load_and_synthesize() { let onnx = model_dir.join("pl_PL-bass-high.onnx"); let json = model_dir.join("pl_PL-bass-high.onnx.json"); - assert!(onnx.exists(), "model file missing: {}", onnx.display()); - assert!(json.exists(), "config file missing: {}", json.display()); + if !onnx.exists() || !json.exists() { + eprintln!( + "skip: piper model not present ({} / {})", + onnx.display(), + json.display() + ); + return; + } let mut piper = piper_rs::Piper::new(&onnx, &json).expect("failed to load piper model"); -- cgit v1.2.3