[前][次][番号順一覧][スレッド一覧]

ruby-changes:63842

From: Nobuyoshi <ko1@a...>
Date: Wed, 2 Dec 2020 17:24:35 +0900 (JST)
Subject: [ruby-changes:63842] 9e94cd18fc (master): test-bundled-gems: select bundled gems to test by BUNDLED_GEMS

https://git.ruby-lang.org/ruby.git/commit/?id=9e94cd18fc

From 9e94cd18fcf193a9f87b908b7130123602a7d800 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 2 Dec 2020 17:06:09 +0900
Subject: test-bundled-gems: select bundled gems to test by BUNDLED_GEMS


diff --git a/common.mk b/common.mk
index 6b11bec..5c78ebd 100644
--- a/common.mk
+++ b/common.mk
@@ -1363,8 +1363,9 @@ no-test-bundled-gems: https://github.com/ruby/ruby/blob/trunk/common.mk#L1363
 # Override this to allow failure of specific gems on CI
 # TEST_BUNDLED_GEMS_ALLOW_FAILURES =
 
+BUNDLED_GEMS =
 test-bundled-gems-run: $(PREPARE_BUNDLED_GEMS)
-	$(Q) $(XRUBY) $(tooldir)/test-bundled-gems.rb
+	$(Q) $(XRUBY) $(tooldir)/test-bundled-gems.rb $(BUNDLED_GEMS)
 
 test-bundler-precheck: $(TEST_RUNNABLE)-test-bundler-precheck
 no-test-bundler-precheck:
diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb
index 6928c76..b8da545 100644
--- a/tool/test-bundled-gems.rb
+++ b/tool/test-bundled-gems.rb
@@ -11,6 +11,7 @@ ruby = ENV['RUBY'] || RbConfig.ruby https://github.com/ruby/ruby/blob/trunk/tool/test-bundled-gems.rb#L11
 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"
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]