Skip to content

Commit

Permalink
Plugin Tests: Exit 1 on error (#15527)
Browse files Browse the repository at this point in the history
The plugin tests were not correctly exiting when plugin errors were present. It will now correctly exit 1 if there are plugins with errors.
  • Loading branch information
roaksoax authored Nov 3, 2023
1 parent cf71dae commit e3584fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/test_plugins.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,13 @@ def setup_logstash_for_development
# restore original git status to avoid to accidentally commit build artifacts
cleanup_logstash_snapshot

if failed_plugins
if !failed_plugins.empty?
puts "########################################"
puts " Failed plugins:"
puts "----------------------------------------"
failed_plugins.each {|failure| puts "- #{failure}"}
puts "########################################"
exit 1
else
puts "NO ERROR ON PLUGINS!"
end

0 comments on commit e3584fd

Please sign in to comment.