aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-09-08 19:44:08 -0500
committerJack Nagel2014-09-08 19:50:15 -0500
commit9321873eef1c895b8d0fae23069dcfcf291f9a40 (patch)
treedb3a31b0404ae5cf5317405712f504dae2248e37 /Library
parentf6eedf946487980c740f5e0595fb46a5a2710597 (diff)
downloadbrew-9321873eef1c895b8d0fae23069dcfcf291f9a40.tar.bz2
Use predicate method and eliminate local
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb5
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"