Skip to content
Snippets Groups Projects
Commit c479c680 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

brew-test-bot: fix output handling.

parent a70c4499
No related branches found
No related tags found
No related merge requests found
......@@ -61,20 +61,20 @@ class Step
step.puts_command
command = "#{step.command} &>#{step.log_file_path}"
output = nil
if command.start_with? 'git '
Dir.chdir step.repository do
output = `#{command}`
`#{command}`
end
else
output = `#{command}`
`#{command}`
end
output = IO.read(step.log_file_path) rescue nil
success = $?.success?
step.status = success ? :passed : :failed
step.puts_result
return unless File.exists?(step.log_file_path)
output = IO.read(step.log_file_path)
if output and output.any? and (not success or puts_output_on_success)
puts output
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment