Skip to content

Commit

Permalink
Fix bug when printing log on spec failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorlakshya committed Jul 21, 2024
1 parent 1c59408 commit ee3b1d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
config.after do |example|
if example.exception
# Print error from ffmpeg log
next unless File.exist?(test_log_file)

File.open(test_log_file).readlines.last(10).join('\n') { puts "FFMPEG error: #{f}" }
end
end
Expand Down

0 comments on commit ee3b1d9

Please sign in to comment.