From 488c65eded1201999f9bc4da4075a75edfe6cf62 Mon Sep 17 00:00:00 2001 From: Sergio Rubio Date: Fri, 8 Jul 2011 15:36:08 +0200 Subject: [PATCH] * move failure message to the end of the output --- bin/abiquo-installer-tests | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/abiquo-installer-tests b/bin/abiquo-installer-tests index 61c45b7..4a977d2 100755 --- a/bin/abiquo-installer-tests +++ b/bin/abiquo-installer-tests @@ -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}"