summaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-03-13 17:04:12 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-03-13 17:04:12 +0000
commit4d1c221d063af33f1cb1745a43036c8a2a20e904 (patch)
treef192f88340f9e26771bf72d08d72878f84c89162 /Rakefile
parent29ec7069742c73f2687ec62e2ceb6f7093b525b2 (diff)
downloadpuppet-4d1c221d063af33f1cb1745a43036c8a2a20e904.tar.gz
puppet-4d1c221d063af33f1cb1745a43036c8a2a20e904.tar.xz
puppet-4d1c221d063af33f1cb1745a43036c8a2a20e904.zip
Changing the way the hosttest output is handled
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1018 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 2f29d4164..7cf78f072 100644
--- a/Rakefile
+++ b/Rakefile
@@ -381,12 +381,9 @@ task :hosttest do
TESTHOSTS.each { |host|
puts "testing %s" % host
cwd = Dir.getwd
- out += %x{ssh #{host} 'cd puppet/test; sudo ./test' 2>&1}
+ system("ssh #{host} 'cd puppet/test; sudo ./test' 2>&1 >/tmp/#{host}test.out")
if $? != 0
- file = File.join("/tmp", "%stest.out" % host)
- File.open(file, "w") { |of| of.print out }
- puts out
puts "%s failed; output is in %s" % [host, file]
end
#sh %{ssh #{host} 'cd #{cwd}/test; sudo ./test' 2>&1}