Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: logger masked in topotest.py (backport #17157) #17277

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Oct 28, 2024

In the cases where sysctl_assure() or sysctl_atleast() catch an error, the previous declaration of the local variable logger masks the global variable also called logger and prevents the error from being gracefully handled. Instead, the local logger is referenced before assignment which throws an unhandled error. The name of the local logger is changed to avoid this unintended behavior.


This is an automatic backport of pull request #17157 done by Mergify.

a local logger masks the global logger and prevents errors from being
gracefully handled within topotest.py

Signed-off-by: Liam Brady <lbrady@labn.net>
(cherry picked from commit 1b38f33)
@frrbot frrbot bot added the tests Topotests, make check, etc label Oct 28, 2024
@Jafaral Jafaral merged commit 354537a into dev/10.2 Oct 28, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/10.2 size/XS tests Topotests, make check, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants