summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-03 21:31:44 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-03 21:31:44 +0900
commit2a99fea89e6a9510f2f2b378cfa661264bcffd5e (patch)
treea78081a4ce384db39dca02c8c51d18f7630dc974 /tool
parentd3c685f0b5b1aedfdeb7660b374ab033bcd27147 (diff)
test-bundled-gems.rb: show failed gems at last
Diffstat (limited to 'tool')
-rw-r--r--tool/test-bundled-gems.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb
index b8da545098..b9a1e559d4 100644
--- a/tool/test-bundled-gems.rb
+++ b/tool/test-bundled-gems.rb
@@ -8,6 +8,7 @@ rake = File.realpath("../../.bundle/bin/rake", __FILE__)
gem_dir = File.realpath('../../gems', __FILE__)
exit_code = 0
ruby = ENV['RUBY'] || RbConfig.ruby
+failed = []
File.foreach("#{gem_dir}/bundled_gems") do |line|
next if /^\s*(?:#|$)/ =~ line
gem = line.split.first
@@ -44,9 +45,11 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
if allowed_failures.include?(gem)
puts "Ignoring test failures for #{gem} due to \$TEST_BUNDLED_GEMS_ALLOW_FAILURES"
else
+ failed << gem
exit_code = $?.exitstatus
end
end
end
+puts "Failed gems: #{failed.join(', ')}" unless failed.empty?
exit exit_code