mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 15:05:03 +00:00
Merge pull request #13635 from donaldsharp/give_ping_a_chance
tests: Actually loop if ping fails
This commit is contained in:
commit
adea8ef308
@ -98,7 +98,8 @@ def check_ping4(name, dest_addr, expect_connected):
|
||||
tgen = get_topogen()
|
||||
output = tgen.gears[name].run("ping {} -c 1 -w 1".format(dest_addr))
|
||||
logger.info(output)
|
||||
assert match in output, "ping fail"
|
||||
if match not in output:
|
||||
return "ping fail"
|
||||
|
||||
match = ", {} packet loss".format("0%" if expect_connected else "100%")
|
||||
logger.info("[+] check {} {} {}".format(name, dest_addr, match))
|
||||
|
Loading…
Reference in New Issue
Block a user