tests: show fs leak result
Closes Homebrew/homebrew#41956. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
0ad82a29f9
commit
ebd0f34561
@ -9,6 +9,14 @@ module Homebrew
|
|||||||
system("bundle", "install", "--path", "vendor/bundle")
|
system("bundle", "install", "--path", "vendor/bundle")
|
||||||
system "bundle", "exec", "rake", "test"
|
system "bundle", "exec", "rake", "test"
|
||||||
Homebrew.failed = !$?.success?
|
Homebrew.failed = !$?.success?
|
||||||
|
if (fs_leak_log = HOMEBREW_LIBRARY/"Homebrew/test/fs_leak_log").file?
|
||||||
|
fs_leak_log_content = fs_leak_log.read
|
||||||
|
unless fs_leak_log_content.empty?
|
||||||
|
opoo "File leak is detected"
|
||||||
|
puts fs_leak_log_content
|
||||||
|
Homebrew.failed = true
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user