From 732fe8014a3fbb502afc70301b625f37f24debde Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 26 Sep 2017 04:59:39 +0000 Subject: run-lcov.rb: support overwritten tmpdir path git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/run-lcov.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tool/run-lcov.rb') diff --git a/tool/run-lcov.rb b/tool/run-lcov.rb index 16aa688c05..3536339ba6 100644 --- a/tool/run-lcov.rb +++ b/tool/run-lcov.rb @@ -1,6 +1,7 @@ #!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) 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 -- cgit v1.2.1