diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-26 04:59:39 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-26 04:59:39 +0000 |
commit | 732fe8014a3fbb502afc70301b625f37f24debde (patch) | |
tree | 59090882b04c2451150015c49fcccad8d6a5065f /tool/run-lcov.rb | |
parent | d297bb14966c619c49a740af2b368040dc900164 (diff) | |
download | ruby-732fe8014a3fbb502afc70301b625f37f24debde.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/run-lcov.rb')
-rw-r--r-- | tool/run-lcov.rb | 5 |
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 |