Skip to content

Commit

Permalink
test-bundled-gems: select bundled gems to test by BUNDLED_GEMS
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 2, 2020
1 parent 44f038b commit 9e94cd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common.mk
Expand Up @@ -1363,8 +1363,9 @@ no-test-bundled-gems:
# 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:
Expand Down
1 change: 1 addition & 0 deletions tool/test-bundled-gems.rb
Expand Up @@ -11,6 +11,7 @@
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"
Expand Down

0 comments on commit 9e94cd1

Please sign in to comment.