ruby-changes:47910
From: mame <ko1@a...>
Date: Tue, 26 Sep 2017 13:59:44 +0900 (JST)
Subject: [ruby-changes:47910] mame:r60029 (trunk): run-lcov.rb: support overwritten tmpdir path
mame 2017-09-26 13:59:39 +0900 (Tue, 26 Sep 2017) New Revision: 60029 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60029 Log: run-lcov.rb: support overwritten tmpdir path Modified files: trunk/tool/run-lcov.rb Index: tool/run-lcov.rb =================================================================== --- tool/run-lcov.rb (revision 60028) +++ tool/run-lcov.rb (revision 60029) @@ -1,6 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/run-lcov.rb#L1 #!ruby require "pathname" require "open3" +require "tmpdir" def backup_gcda_files(gcda_files) gcda_files = gcda_files.map do |gcda| @@ -33,9 +34,9 @@ def run_lcov_merge(files, info) https://github.com/ruby/ruby/blob/trunk/tool/run-lcov.rb#L34 end def run_lcov_remove(info_src, info_out) - dirs = %w(/tmp/* /usr/*) + dirs = %w(/usr/*) + dirs << File.join(Dir.tmpdir, "*") %w( - tmp/* test/* ext/-test-/* ext/nkf/nkf-utf8/nkf.c -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/