mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test-bundled-gems: select bundled gems to test by BUNDLED_GEMS
This commit is contained in:
parent
44f038bd7f
commit
9e94cd18fc
2 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,7 @@ ruby = ENV['RUBY'] || RbConfig.ruby
|
|||
File.foreach("#{gem_dir}/bundled_gems") do |line|
|
||||
next if /^\s*(?:#|$)/ =~ line
|
||||
gem = line.split.first
|
||||
next if ARGV.any? {|pat| !File.fnmatch?(pat, gem)}
|
||||
puts "\nTesting the #{gem} gem"
|
||||
|
||||
test_command = "#{ruby} -C #{gem_dir}/src/#{gem} -Ilib #{rake} test"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue