Skip to content

Commit

Permalink
* move failure message to the end of the output
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Rubio committed Jul 8, 2011
1 parent ab5afd9 commit 488c65e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/abiquo-installer-tests
Expand Up @@ -78,10 +78,10 @@ end
begin
Net::SSH.start(cli.config[:host], 'root', :password => cli.config[:password], :paranoid => false) do |ssh|
output = ssh.exec!("cd /tmp/tests/ && ruby abiquo_postinst_test.rb")
puts output
if output =~ /Failure/m
puts "\n>>>>>> TEST FAILED! <<<<<<".bold.red
puts "\n>>>>>> TEST FAILED! <<<<<<\n\n".bold.red
end
puts output
end
rescue Exception => e
$stderr.puts "Error running tests in remote host #{cli.config[:host]}: #{e.message}"
Expand Down

0 comments on commit 488c65e

Please sign in to comment.