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

ruby-changes:63877

From: Nobuyoshi <ko1@a...>
Date: Thu, 3 Dec 2020 21:32:05 +0900 (JST)
Subject: [ruby-changes:63877] 2a99fea89e (master): test-bundled-gems.rb: show failed gems at last

https://git.ruby-lang.org/ruby.git/commit/?id=2a99fea89e

From 2a99fea89e6a9510f2f2b378cfa661264bcffd5e Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 3 Dec 2020 21:31:44 +0900
Subject: test-bundled-gems.rb: show failed gems at last


diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb
index b8da545..b9a1e55 100644
--- a/tool/test-bundled-gems.rb
+++ b/tool/test-bundled-gems.rb
@@ -8,6 +8,7 @@ rake = File.realpath("../../.bundle/bin/rake", __FILE__) https://github.com/ruby/ruby/blob/trunk/tool/test-bundled-gems.rb#L8
 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| https://github.com/ruby/ruby/blob/trunk/tool/test-bundled-gems.rb#L45
     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
-- 
cgit v0.10.2


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

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