diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-03-13 17:04:12 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-03-13 17:04:12 +0000 |
| commit | 4d1c221d063af33f1cb1745a43036c8a2a20e904 (patch) | |
| tree | f192f88340f9e26771bf72d08d72878f84c89162 /Rakefile | |
| parent | 29ec7069742c73f2687ec62e2ceb6f7093b525b2 (diff) | |
| download | puppet-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-- | Rakefile | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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} |
