Fix a typo and add a +1 so that the proper attempt is displayed to the user
Signed-off-by: Scott Zawalski <scottz@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3991 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/hosts/serial.py b/server/hosts/serial.py
index 6daffdd..b1034ea 100644
--- a/server/hosts/serial.py
+++ b/server/hosts/serial.py
@@ -139,14 +139,14 @@
try:
self.wait_for_restart(timeout, log_failure=False)
except error.AutoservShutdownError:
- logging.warning(warning_msg, attempt, num_attempts)
+ logging.warning(warning_msg, attempt+1, num_attempts)
else:
break
else:
# Run on num_attempts=1 or last retry
try:
self.wait_for_restart(timeout)
- except error.AutoservShutdwonError:
+ except error.AutoservShutdownError:
logging.warning(warning_msg, num_attempts, num_attempts)
msg = "Host did not shutdown"
raise error.AutoservShutdownError(msg)