If a reboot fails, the exception should always float upwards; a
failed reboot is generally catastrophic and should by default be
treated as an exception.
Risk: Low
Visibility: Any code that calls reboot expecting to automatically
swallow exceptions may not like this, but any such code sounds rather
broken to begin with.
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2971 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/server_job.py b/server/server_job.py
index 13464ec..b61793c 100755
--- a/server/server_job.py
+++ b/server/server_job.py
@@ -555,6 +555,7 @@
self.record_prefix = old_record_prefix
err_msg = str(e) + '\n' + traceback.format_exc()
self.record('END FAIL', None, 'reboot', err_msg)
+ raise
else:
kernel = get_kernel_func()
self.record_prefix = old_record_prefix