mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
clear the gem paths before the test rake tasks so they find previously installed plugins
Fixes #2235
This commit is contained in:
parent
1315605756
commit
9c66c99a8b
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
|
||||
namespace "test" do
|
||||
task "default" => [ "bootstrap", "test:prep" ] do
|
||||
Gem.clear_paths
|
||||
require "logstash/environment"
|
||||
LogStash::Environment.set_gem_paths!
|
||||
require 'rspec/core'
|
||||
|
@ -8,6 +9,7 @@ namespace "test" do
|
|||
end
|
||||
|
||||
task "fail-fast" => [ "bootstrap", "test:prep" ] do
|
||||
Gem.clear_paths
|
||||
require "logstash/environment"
|
||||
LogStash::Environment.set_gem_paths!
|
||||
require 'rspec/core'
|
||||
|
@ -30,4 +32,4 @@ namespace "test" do
|
|||
|
||||
end
|
||||
|
||||
task "test" => [ "test:default" ]
|
||||
task "test" => [ "test:default" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue