summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-02 17:06:09 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-02 17:06:09 +0900
commit9e94cd18fcf193a9f87b908b7130123602a7d800 (patch)
tree50a5850613f3f1594d3935daf9cb1ba5c09bbb2f /tool
parent44f038bd7f8371011722ef3531a13d054e541fa2 (diff)
test-bundled-gems: select bundled gems to test by BUNDLED_GEMS
Diffstat (limited to 'tool')
-rw-r--r--tool/test-bundled-gems.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb
index 6928c7691c..b8da545098 100644
--- a/tool/test-bundled-gems.rb
+++ b/tool/test-bundled-gems.rb
@@ -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"