This patch adds logging for reboots into the status log so that you can determine if a machine is busy rebooting (or that the reboot has timed out) by looking at just status.log. It also enhaces status.py to handle all test status values, not just GOOD, WARN and FAIL. 

From: John Admanski <jadmanski@google.com>
Signed-off-by: Martin J. Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@859 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/hosts/ssh_host.py b/server/hosts/ssh_host.py
index 474e36c..be3861d 100644
--- a/server/hosts/ssh_host.py
+++ b/server/hosts/ssh_host.py
@@ -189,7 +189,8 @@
 		self.wait_down(60)	# Make sure he's dead, Jim
 		self.wait_up(timeout)
 		time.sleep(2) # this is needed for complete reliability
-		self.wait_up(timeout)
+		if not self.wait_up(timeout):
+			sys.stderr.write("REBOOT ERROR\n")
 		print "Reboot complete"
 
 
@@ -343,6 +344,7 @@
 				label = self.bootloader.get_titles()[default]
 			self.bootloader.add_args(label, kernel_args)
 		print "Reboot: initiating reboot"
+		sys.stderr.write("REBOOT\n")
 		self.run('reboot')
 		if wait:
 			self._wait_for_restart(timeout)