ruby-changes:59926
From: Nobuyoshi <ko1@a...>
Date: Wed, 5 Feb 2020 09:42:31 +0900 (JST)
Subject: [ruby-changes:59926] 0226d72e95 (master): Fixed the output from separated test in parallel test
https://git.ruby-lang.org/ruby.git/commit/?id=0226d72e95 From 0226d72e953733759414aa3ffbecfe7eed195858 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 5 Feb 2020 09:35:29 +0900 Subject: Fixed the output from separated test in parallel test To output to the STDOUT of the parent process according to the parallel test protocol, should send to the `MiniTest::Unit.output` instead of each own STDOUT. diff --git a/tool/lib/test/unit/core_assertions.rb b/tool/lib/test/unit/core_assertions.rb index b19c3e5..3eecf45 100644 --- a/tool/lib/test/unit/core_assertions.rb +++ b/tool/lib/test/unit/core_assertions.rb @@ -137,7 +137,7 @@ eom https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit/core_assertions.rb#L137 begin if res_c res_c.close - print stdout + MiniTest::Unit.output.print stdout res = Marshal.load(res_p.read.unpack("m")[0]) res_p.close else -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/