From 2e80cd0cb7f153710c70e959512049ae6d2f67b0 Mon Sep 17 00:00:00 2001 From: Colin Surprenant Date: Mon, 16 Nov 2015 19:33:34 -0500 Subject: [PATCH] fix coverage paths for new structure by #4123 --- spec/coverage_helper.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/coverage_helper.rb b/spec/coverage_helper.rb index 6ecb2f570..009f7fb54 100644 --- a/spec/coverage_helper.rb +++ b/spec/coverage_helper.rb @@ -5,20 +5,19 @@ module CoverageHelper ## # Skip list used to avoid loading certain patterns within - # the logstash directories, this patterns are excluded becuause + # the logstash directories, this patterns are excluded because # of potential problems or because they are going to be loaded # in another way. ## SKIP_LIST = Regexp.union([ /^lib\/bootstrap\/rspec.rb$/, - /^lib\/logstash\/util\/prctl.rb$/ + /^logstash-core\/lib\/logstash\/util\/prctl.rb$/ ]) def self.eager_load - Dir.glob("lib/**/*.rb") do |file| + Dir.glob("{logstash-core{/,-event/},}lib/**/*.rb") do |file| next if file =~ SKIP_LIST require file end end - end