diff options
| author | Jack Nagel | 2014-09-07 20:12:05 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-07 20:25:12 -0500 |
| commit | 2dd51c02103e12f65cb44b3e0fe738cd4386c3d3 (patch) | |
| tree | f58c8b61ecae38a96b454581cac23d36407fd16d /Library | |
| parent | 5fc297e5c6c9019f1020c061fe70de8b7c3ac807 (diff) | |
| download | homebrew-2dd51c02103e12f65cb44b3e0fe738cd4386c3d3.tar.bz2 | |
Make sure redirected stdout and stderr share the same offset
This fixes broken output like this:
Error: No such file or directory - non_existent_file
ee/src/tree-1.7.0.tgz
Already downloaded: /Library/Caches/Homebrew/tree-1.7.0.tgz
==> Verifying tree-1.7.0.tgz checksum
tar xf /Library/Caches/Homebrew/tree-1.7.0.tgz
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 6 |
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 |
