diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 01:35:18 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 01:35:18 +0100 |
| commit | 2a8c7b65d5abd177a38422d8c77e85a478c27f09 (patch) | |
| tree | 41771c7700116c67dcb593879090fc24954e9e71 | |
| parent | events: track voice channel moves (diff) | |
| download | senator-sperma-2a8c7b65d5abd177a38422d8c77e85a478c27f09.tar.gz senator-sperma-2a8c7b65d5abd177a38422d8c77e85a478c27f09.zip | |
tests: skip the piper smoke test when models are absent
| -rw-r--r-- | tests/tts_smoke.rs | 10 |
1 files changed, 8 insertions, 2 deletions
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() { | |||
| 8 | let onnx = model_dir.join("pl_PL-bass-high.onnx"); | 8 | let onnx = model_dir.join("pl_PL-bass-high.onnx"); |
| 9 | let json = model_dir.join("pl_PL-bass-high.onnx.json"); | 9 | let json = model_dir.join("pl_PL-bass-high.onnx.json"); |
| 10 | 10 | ||
| 11 | assert!(onnx.exists(), "model file missing: {}", onnx.display()); | 11 | if !onnx.exists() || !json.exists() { |
| 12 | assert!(json.exists(), "config file missing: {}", json.display()); | 12 | eprintln!( |
| 13 | "skip: piper model not present ({} / {})", | ||
| 14 | onnx.display(), | ||
| 15 | json.display() | ||
| 16 | ); | ||
| 17 | return; | ||
| 18 | } | ||
| 13 | 19 | ||
| 14 | let mut piper = | 20 | let mut piper = |
| 15 | piper_rs::Piper::new(&onnx, &json).expect("failed to load piper model"); | 21 | piper_rs::Piper::new(&onnx, &json).expect("failed to load piper model"); |
