From 77c149eb20fb528b4efa6a83b5ee8b096891b473 Mon Sep 17 00:00:00 2001 From: zarzet <42882290+zarzet@users.noreply.github.com> Date: Sun, 18 Oct 2026 21:57:38 +0700 Subject: [PATCH] test: skip the automix renderer test when ffmpeg is missing Mirror the other ffmpeg-backed tests: skip instead of failing with a ProcessException on hosts without ffmpeg. --- test/automix_effect_renderer_test.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/automix_effect_renderer_test.dart b/test/automix_effect_renderer_test.dart index 3d98d268..b3f48762 100644 --- a/test/automix_effect_renderer_test.dart +++ b/test/automix_effect_renderer_test.dart @@ -74,7 +74,13 @@ void main() { 'real filters change pitch, attenuate highs, and generate delayed echoes', () async { final ffmpeg = Platform.environment['SPOTIFLAC_TEST_FFMPEG'] ?? 'ffmpeg'; - final probe = await Process.run(ffmpeg, ['-version']); + final ProcessResult probe; + try { + probe = await Process.run(ffmpeg, ['-version']); + } on ProcessException { + markTestSkipped('Host FFmpeg is unavailable'); + return; + } expect(probe.exitCode, 0); final jobs = AudioAnalysisJobs( start: (arguments) async => (