increase ping packet count 75/91575/2
authorSrinivas Rachakonda <srinivas.rachakonda@gmail.com>
Thu, 23 Jul 2020 07:12:01 +0000 (12:42 +0530)
committerJamo Luhrsen <jluhrsen@gmail.com>
Thu, 23 Jul 2020 16:22:01 +0000 (16:22 +0000)
Signed-off-by: Srinivas Rachakonda <srinivas.rachakonda@gmail.com>
Change-Id: I02d265ff89be5eed2d301053f8b8ab87d86226d8

csit/libraries/OpenStackOperations.robot

index e6cfb6bd643660541a0a3872fbec9a892af5574e..d2600c9951ef3d2e4e11177eb1961faa00911ae7 100644 (file)
@@ -523,7 +523,7 @@ Check Ping
     [Documentation]    Run Ping command on the IP available as argument
     ${ethertype} =    String.Get Regexp Matches    ${ip_address}    ${IP_REGEX}
     ${ping} =    BuiltIn.Set Variable If    ${ethertype}    ping    ping6
-    ${cmd} =    BuiltIn.Set Variable    rc=0; for count in `seq 1 ${ping_tries}`; do ${ping} -W1 -t${ttl} -c1 ${ip_address}; rc=$?; if [ $rc -eq 0 ]; then break; fi; done; echo ping_rc=$rc
+    ${cmd} =    BuiltIn.Set Variable    rc=0; for count in `seq 1 ${ping_tries}`; do ${ping} -W1 -t${ttl} -c5 ${ip_address}; rc=$?; if [ $rc -eq 0 ]; then break; fi; done; echo ping_rc=$rc
     ${output} =    Utils.Write Commands Until Expected Regexp    ${cmd}    ping_rc=\\d+    120
     BuiltIn.Log    output: ${output}
     BuiltIn.Should Contain    ${output}    64 bytes