mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Separated tool/test/runner.rb and test/runner.rb
As `make test-tool` does not use gems, and no Rubygems stuffs is needed, so moved such things to test/runner.rb. Also no longer nees `--test-target-dir` option.
This commit is contained in:
parent
46771abfe5
commit
8e53d18e67
4 changed files with 32 additions and 37 deletions
11
test/runner.rb
Normal file
11
test/runner.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Should be done in rubygems test files?
|
||||
ENV["GEM_SKIP"] = ENV["GEM_HOME"] = ENV["GEM_PATH"] = "".freeze
|
||||
|
||||
# Get bundled gems on load path
|
||||
Dir.glob("#{__dir__}/../gems/*/*.gemspec")
|
||||
.reject {|f| f =~ /minitest|test-unit|power_assert/ }
|
||||
.map {|f| $LOAD_PATH.unshift File.join(File.dirname(f), "lib") }
|
||||
|
||||
require_relative '../tool/test/runner'
|
Loading…
Add table
Add a link
Reference in a new issue