fs_leak_logger: use more permissive mkpath.
This avoids a race condition occurring here.
This commit is contained in:
parent
bc9d3afd6e
commit
c560c47202
@ -4,7 +4,7 @@ module Test
|
|||||||
def self.included(klass)
|
def self.included(klass)
|
||||||
require "find"
|
require "find"
|
||||||
logdir = HOMEBREW_LIBRARY_PATH.join("tmp")
|
logdir = HOMEBREW_LIBRARY_PATH.join("tmp")
|
||||||
logdir.mkdir unless logdir.directory?
|
logdir.mkpath
|
||||||
@@log = File.open(logdir.join("fs_leak.log"), "w")
|
@@log = File.open(logdir.join("fs_leak.log"), "w")
|
||||||
klass.make_my_diffs_pretty!
|
klass.make_my_diffs_pretty!
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user