mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
Use the built bundled gems in test-all as well as test-bundled-gems
This commit is contained in:
parent
5738ae70d9
commit
b19490f75d
Notes:
git
2022-12-08 17:20:39 +00:00
@ -1,14 +1,16 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Should be done in rubygems test files?
|
||||
ENV["GEM_SKIP"] = ENV["GEM_HOME"] = ENV["GEM_PATH"] = "".freeze
|
||||
ENV["GEM_SKIP"] = "".freeze
|
||||
ENV.delete("RUBY_CODESIGN")
|
||||
|
||||
Warning[:experimental] = false
|
||||
|
||||
# Get bundled gems on load path
|
||||
Dir.glob("#{__dir__}/../.bundle/gems/*/*.gemspec")
|
||||
.reject {|f| f =~ /minitest|test-unit|power_assert/ }
|
||||
.map {|f| $LOAD_PATH.unshift File.join(File.dirname(f), "lib") }
|
||||
gem_path = [
|
||||
File.realdirpath(".bundle"),
|
||||
File.realdirpath("../.bundle", __dir__),
|
||||
]
|
||||
ENV["GEM_PATH"] = gem_path.join(File::PATH_SEPARATOR)
|
||||
ENV["GEM_HOME"] = gem_path.first
|
||||
|
||||
require_relative '../tool/test/runner'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user