aboutsummaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorMofassir Arif <Mofassir_arif@dellteam.com>2015-12-17 03:48:42 -0800
committerMofassir Arif <Mofassir_arif@dellteam.com>2015-12-17 03:48:42 -0800
commit390c1e3ca7f751fdfe6c7e9634d0d95ae6ba114f (patch)
treee441b0e2e83ac7da9830d23ce32756501232fbd1 /func
parent6737007d817e62567cbcdaca598f4b1ffa915463 (diff)
Script to modify key file permissions
I have added a script to change the file permissions of the key files to 600 so that they can be used by the ssh agent The duration of the sshtest has also been reduced to allow the Jenkins Job to run/fail in a reasonable amount of time Change-Id: I5446896619dfba3f3efb600b64628343d6378164 Signed-off-by: Mofassir Arif <Mofassir_arif@dellteam.com>
Diffstat (limited to 'func')
-rw-r--r--func/env_setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/func/env_setup.py b/func/env_setup.py
index f3c01a7c..8abf9da2 100644
--- a/func/env_setup.py
+++ b/func/env_setup.py
@@ -53,7 +53,7 @@ class Env_setup():
ssh_cmd = 'expect ./data/ssh_exch.exp {0} {1}'.format(ipvar, pwvar)
print ssh_cmd
res = os.system(ssh_cmd)
- for infinity in range(10000):
+ for infinity in range(100):
try :
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
@@ -71,7 +71,7 @@ class Env_setup():
time.sleep(3)
os.system(ssh_c)
- for infinity in range(10000):
+ for infinity in range(100):
try :
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())