diff options
| author | Jack Nagel | 2014-09-08 19:44:08 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-08 19:50:15 -0500 |
| commit | b429a448a0199b62782dbddffcea1df8f5a306b0 (patch) | |
| tree | 169018edef8b1b59a806b9672722532659581ec6 /Library | |
| parent | 8ef16ec9660b946d8f1740fa408a788ff4fafb01 (diff) | |
| download | homebrew-b429a448a0199b62782dbddffcea1df8f5a306b0.tar.bz2 | |
Use predicate method and eliminate local
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index ea8f98add..30436263c 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -116,13 +116,12 @@ class Step @time = Time.now - start_time - success = $?.success? - @status = success ? :passed : :failed + @status = $?.success? ? :passed : :failed puts_result if File.exist?(log) @output = File.read(log) - if has_output? and (not success or @puts_output_on_success) + if has_output? and (failed? or @puts_output_on_success) puts @output end FileUtils.rm(log) unless ARGV.include? "--keep-logs" |
