Skip to content

test: Pass proto_ver to do_test() functions that require it #3211

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattst88
Copy link

@mattst88 mattst88 commented Feb 10, 2025

These test scripts all contain a finally: block that attempts to print proto_ver which does not exist:

print("proto_ver=%d" % (proto_ver))

This mistake appears to be a copy-and-paste error in commit b2a9daf ("02 broker subpub tests with v5 support") and went unnoticed because the code is only reached if the tests fail.

Fixes: b2a9daf ("02 broker subpub tests with v5 support")
Closes: #3123

These test scripts all contain a `finally:` block that attempts to print
proto_ver which does not exist:

```
print("proto_ver=%d" % (proto_ver))
```

This mistake appears to be a copy-and-paste error in commit b2a9daf ("02
broker subpub tests with v5 support") and went unnoticed because the
code is only reached if the tests fail.

Fixes: b2a9daf ("02 broker subpub tests with v5 support")
Closes: eclipse-mosquitto#3123
@mattst88
Copy link
Author

mattst88 commented Apr 2, 2025

@ralight: could you please have a look at this trivial PR?

@mattst88
Copy link
Author

mattst88 commented May 5, 2025

@ralight: I went through the hassle of signing the CLA. Can you have a look now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some tests access undefined proto_var variable
1 participant