aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-07-22 16:04:59 +0800
committerXu Cheng2015-07-22 20:27:20 +0800
commitebd0f345619b6fd76751275b43a97d5ac5e11b76 (patch)
tree1b3683d2e593fdb84eded5b7b780f767a9b7afd2 /Library
parent0ad82a29f91f28cc76b2122d8257dab40491ab1b (diff)
downloadbrew-ebd0f345619b6fd76751275b43a97d5ac5e11b76.tar.bz2
tests: show fs leak result
Closes Homebrew/homebrew#41956. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/tests.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/tests.rb b/Library/Homebrew/cmd/tests.rb
index 36037c886..ed578a61d 100644
--- a/Library/Homebrew/cmd/tests.rb
+++ b/Library/Homebrew/cmd/tests.rb
@@ -9,6 +9,14 @@ module Homebrew
system("bundle", "install", "--path", "vendor/bundle")
system "bundle", "exec", "rake", "test"
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