diff options
| author | Mike McQuaid | 2012-11-10 06:18:27 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2012-11-10 06:18:34 +0000 |
| commit | 623bbb2ada8b3728715047e57d66c353d6f538ef (patch) | |
| tree | a0d4340998ae8ba5439ea0bc0be3fe398ddf5797 /Library | |
| parent | 925a9572c927ee6288dd96317054874a880c1be8 (diff) | |
| download | brew-623bbb2ada8b3728715047e57d66c353d6f538ef.tar.bz2 | |
brew-test-bot: print bottle output with --log.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmds/brew-test-bot.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Contributions/cmds/brew-test-bot.rb b/Library/Contributions/cmds/brew-test-bot.rb index 047546583..844e954f6 100755 --- a/Library/Contributions/cmds/brew-test-bot.rb +++ b/Library/Contributions/cmds/brew-test-bot.rb @@ -67,12 +67,13 @@ class Step end end - def self.run test, command + def self.run test, command, output_on_success = false step = new test, command step.puts_command `#{step.command} &>#{step.log_file_path}` step.status = $?.success? ? :passed : :failed step.puts_result + puts IO.read(step.log_file_path) if output_on_success step.write_html end end @@ -199,7 +200,7 @@ class Test test "brew install --verbose --build-bottle #{formula}" return unless steps.last.status == :passed test "brew test #{formula}" if defined? Formula.factory(formula).test - test "brew bottle #{formula}" + test "brew bottle #{formula}", true test "brew uninstall #{formula}" end @@ -220,8 +221,8 @@ class Test end end - def test cmd - Step.run self, cmd + def test cmd, output_on_success = false + Step.run self, cmd, output_on_success end def check_results |
