Skip to content

Commit 41948d3

Browse files
committed
[test] fix compatibility with rake 13.4
1 parent 217f279 commit 41948d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Rake::TestTask.new do |task|
3434
test_files = FileList['src/test/ruby/**/test*.rb'].to_a
3535
task.test_files = test_files.map { |path| path.sub('src/test/ruby/', '') }
3636
task.verbose = true
37-
task.loader = :direct
37+
task.loader = "ARGV.each { |f| require f unless f.start_with?('-') }"
3838
task.ruby_opts = [ '-C', 'src/test/ruby', '-rbundler/setup' ]
3939
end
4040
task :test => 'lib/jopenssl.jar'
@@ -49,7 +49,7 @@ namespace :integration do
4949
unless File.exist?(File.join(it_path, 'Gemfile.lock'))
5050
raise "bundle not installed, run `rake integration:install'"
5151
end
52-
loader = "ARGV.each { |f| require f }"
52+
loader = "ARGV.each { |f| require f unless f.start_with?('-') }"
5353
lib = [ File.expand_path('../lib', __FILE__), it_path ]
5454
test_files = FileList['src/test/integration/*_test.rb'].map { |path| path.sub('src/test/integration/', '') }
5555
ruby "-I#{lib.join(':')} -C src/test/integration -e \"#{loader}\" #{test_files.map { |f| "\"#{f}\"" }.join(' ')}"

0 commit comments

Comments
 (0)