зеркало из https://github.com/github/ruby.git
Try to test with rake-13.0.2 again.
[ruby/fileutils] Make verbose output go to stdout instead of stderr
This reverts commit 510df47f5f
.
This commit is contained in:
Родитель
bdd18090ad
Коммит
349e79bae0
|
@ -1623,7 +1623,7 @@ module FileUtils
|
|||
|
||||
def fu_output_message(msg) #:nodoc:
|
||||
output = @fileutils_output if defined?(@fileutils_output)
|
||||
output ||= $stderr
|
||||
output ||= $stdout
|
||||
if defined?(@fileutils_label)
|
||||
msg = @fileutils_label + msg
|
||||
end
|
||||
|
|
|
@ -1748,16 +1748,16 @@ class TestFileUtils < Test::Unit::TestCase
|
|||
o.extend(FileUtils)
|
||||
o.singleton_class.send(:public, :chdir)
|
||||
o.freeze
|
||||
orig_stderr = $stderr
|
||||
$stderr = StringIO.new
|
||||
orig_stdout = $stdout
|
||||
$stdout = StringIO.new
|
||||
o.chdir('.', verbose: true){}
|
||||
$stderr.rewind
|
||||
assert_equal(<<-END, $stderr.read)
|
||||
$stdout.rewind
|
||||
assert_equal(<<-END, $stdout.read)
|
||||
cd .
|
||||
cd -
|
||||
END
|
||||
ensure
|
||||
$stderr = orig_stderr if orig_stderr
|
||||
$stdout = orig_stdout if orig_stdout
|
||||
end
|
||||
|
||||
def test_getwd
|
||||
|
|
Загрузка…
Ссылка в новой задаче