updates for terminating program after fatal SSH Errors

This commit is contained in:
Rohit Gupta
2015-12-29 20:49:11 +01:00
parent 959f13e1e7
commit 91c43fa2ea
2 changed files with 11 additions and 3 deletions
@@ -273,9 +273,12 @@ def SSHSessionWrapper(machine, username, key_file, password, logdir_remote_testc
error = error + '\n username = ' + username + '\n machine = ' + machine + '\n logdir_remote = ' + logdir_remote_testcase + '\n logdir_local_base = ' + logdir_local_base
error = error + traceback.format_exc()
print error
print " Trying again in 1 seconds"
print " Retrying again in 1 seconds"
time.sleep(1)
print "Continuing ..."
if i ==max_tries:
print "Fatal Error: Max no of retries reached. Exiting now..."
sys.exit(1)