Make sure that when a client-side reboot fails the server properly
logs it as an ABORT.

Risk: Medium
Visibility: Reboot failures during client jobs show up in the status.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2397 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autotest.py b/server/autotest.py
index 5af84aa..8923cfc 100644
--- a/server/autotest.py
+++ b/server/autotest.py
@@ -451,7 +451,12 @@
                     print "Client complete"
                     return
                 elif re.match('^\t*GOOD\t----\treboot\.start.*$', last):
-                    self._wait_for_reboot()
+                    try:
+                        self._wait_for_reboot()
+                    except error.AutotestRunError, e:
+                        job.record("ABORT", None, "reboot", str(e))
+                        job.record("END ABORT", None, None, str(e))
+                        raise
                     continue
 
                 # if we reach here, something unexpected happened