From 4556c11d67f5bbf82b2c74f7aa1f874c71af4535 Mon Sep 17 00:00:00 2001 From: Chris Lowis Date: Wed, 2 Oct 2024 16:43:07 +0100 Subject: [PATCH] Use `print_format` not `output_format` for compatibility with `ffprobe` version 4 (installed by default on CI machine) --- test/jobs/transcode_job_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/jobs/transcode_job_test.rb b/test/jobs/transcode_job_test.rb index 51e87eaf..73140f62 100644 --- a/test/jobs/transcode_job_test.rb +++ b/test/jobs/transcode_job_test.rb @@ -76,11 +76,9 @@ class TranscodeJobTest < ActiveJob::TestCase TranscodeJob.perform_now(track, format: :flac) track.transcodes.flac.first.file.open do |file| - cmd = "ffprobe -i #{file.path} -output_format json -show_format" + cmd = "ffprobe -i #{file.path} -print_format json -show_format" std_out, _status = Open3.capture2(cmd) - puts std_out metadata = JSON.parse(std_out) - puts metadata assert_equal track.title, metadata['format']['tags']['TITLE'] assert_equal '01', metadata['format']['tags']['track']