]> git.puffer.fish Git - mirror/frr.git/commit
tests: optionally pass `seconds_left` to retrying functions
authorChristian Hopps <chopps@labn.net>
Sat, 7 Sep 2024 11:09:27 +0000 (07:09 -0400)
committerChristian Hopps <chopps@labn.net>
Sat, 7 Sep 2024 11:09:27 +0000 (07:09 -0400)
commit987100333aaf1c4a9900a2103c05c2a450b180eb
treeb31d4b46bd6c370c570a6dd0efbefb1fea3b5d58
parent4ec2f482d1e26e8f81ba0a709c0e39fc2ec42f27
tests: optionally pass `seconds_left` to retrying functions

This allows retrying functions to possibly change their logging level
for diagnostics.

In order to maintain backward compatibility with this longstanding
function we catch the specific exception of it not being handled by the
retrying function and call again w/o the argument.

Signed-off-by: Christian Hopps <chopps@labn.net>
tests/topotests/lib/common_config.py