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.
This commit is contained in:
zarzet committed 2026-10-18 22:08:02 +07:00
1 parent 25ad8b3c71
commit 77c149eb20
1 file changed
+7 -1
+7 -1
View File
@@ -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<bool>(
start: (arguments) async => (