Merge "Increase Ping scenario ssh timeout limit to 600 seconds"
authorRex Lee <limingjiang@huawei.com>
Mon, 12 Dec 2016 07:43:15 +0000 (07:43 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Mon, 12 Dec 2016 07:43:15 +0000 (07:43 +0000)
1  2 
yardstick/benchmark/scenarios/networking/ping.py

@@@ -52,10 -50,9 +52,10 @@@ class Ping(base.Scenario)
          else:
              LOG.info("Log in via key, user:%s, host:%s, key_filename:%s",
                       user, ip, key_filename)
 -            self.connection = ssh.SSH(user, ip, key_filename=key_filename)
 +            self.connection = ssh.SSH(user, ip, key_filename=key_filename,
 +                                      port=ssh_port)
  
-         self.connection.wait()
+         self.connection.wait(timeout=600)
  
      def run(self, result):
          """execute the benchmark"""