aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-26 04:59:39 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-26 04:59:39 +0000
commite678d91605aa068a9b85865b8925732d1625c596 (patch)
tree59090882b04c2451150015c49fcccad8d6a5065f /tool
parentc12f3e41689c2207160275d426848ffb30ee2d75 (diff)
downloadruby-e678d91605aa068a9b85865b8925732d1625c596.tar.gz
run-lcov.rb: support overwritten tmpdir path
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/run-lcov.rb5
1 files changed, 3 insertions, 2 deletions
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