mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-20 22:41:38 +02:00
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:
1 parent
25ad8b3c71
commit
77c149eb20
1 file changed
+7
-1
@@ -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 => (
|
||||
|
||||
Reference in new issue
Block a user