summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-09 17:16:36 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-09 17:16:36 +0000
commit48ba0305d876e61bb370322b0fd6ad94e0540337 (patch)
treebf9c09ce06440c4822ee3ca74236d60e8dbad39c
parentf00a7db3072b98d6ec599dd271705c91f20ffcb6 (diff)
Modifying hosttest
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@790 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r--Rakefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index a8064e318..3a24fbc62 100644
--- a/Rakefile
+++ b/Rakefile
@@ -345,8 +345,12 @@ task :hosttest do
TESTHOSTS.each { |host|
puts "testing %s" % host
cwd = Dir.getwd
- #out += %x{ssh #{host} 'cd puppet/test; sudo ./test' 2>&1}
- sh %{ssh #{host} 'cd #{cwd}/test; sudo ./test' 2>&1}
+ out += %x{ssh #{host} 'cd puppet/test; sudo ./test' 2>&1}
+
+ if $? != 0
+ puts out
+ end
+ #sh %{ssh #{host} 'cd #{cwd}/test; sudo ./test' 2>&1}
}
#IO.popen("mail -s 'Puppet Test Results' luke@madstop.com") do |m|