Add variable for timeout of controller stop 74/26174/1
authorFlavio Fernandes <ffernand@redhat.com>
Fri, 28 Aug 2015 18:51:22 +0000 (14:51 -0400)
committerFlavio Fernandes <ffernand@redhat.com>
Fri, 28 Aug 2015 18:51:33 +0000 (14:51 -0400)
This change will expose the max timeout used to stop a controller.
The value is not being changed, it just allows robot to override
the default via the "-v" parameter. Example:

pybot -v CONTROLLER_STOP_TIMEOUT:240

Change-Id: Ica23742006d4eaef5319b4faed29d9ed20866387
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
csit/libraries/ClusterKeywords.robot
csit/variables/Variables.py

index e3846aeaa19563a558844bcc9d957739172317d4..1a951c2337cf8a962a22be0b3c22d9f317a3426e 100644 (file)
@@ -170,7 +170,7 @@ Stop One Or More Controllers
     : FOR    ${ip}    IN    @{controllers}
     \    Run Command On Remote System    ${ip}    ${cmd}
     : FOR    ${ip}    IN    @{controllers}
-    \    Wait Until Keyword Succeeds    120 s    3 s    Controller Down Check    ${ip}
+    \    Wait Until Keyword Succeeds    ${CONTROLLER_STOP_TIMEOUT} s    3 s    Controller Down Check    ${ip}
 
 Start One Or More Controllers
     [Arguments]    @{controllers}
index ef89eecbd1bd477b630c515f29784647dc75681c..17e6f3adf3bcfcdf5eb4681db6dde4b81d1be868 100644 (file)
@@ -29,6 +29,7 @@ CONTROLLER_PASSWORD = ''  # empty means use keys
 MININET_PASSWORD = ''  # empty means use keys
 KEYFILE_PASS = 'any'
 SSH_KEY = 'id_rsa'
+CONTROLLER_STOP_TIMEOUT = 120  # Max number of seconds test will wait for a controller to stop
 
 # KARAF Variaable
 KARAF_SHELL_PORT = '8101'