aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index 4393faa7c..da6ba1c6e 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -105,8 +105,10 @@ class Step
log = log_file_path
pid = fork do
- STDOUT.reopen(log, "wb")
- STDERR.reopen(log, "wb")
+ File.open(log, "wb") do |f|
+ STDOUT.reopen(f)
+ STDERR.reopen(f)
+ end
Dir.chdir(@repository) if @command.first == "git"
exec(*@command)
end