-
Notifications
You must be signed in to change notification settings - Fork 457
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
Clean up BMv2's run-stf-test script and integrate it with testutils #4981
Conversation
c91fd73
to
816b35a
Compare
1b54e21
to
85f3eea
Compare
[tool.pylint.main] | ||
init-hook="from pylint.config import find_default_config_files; import os, sys; sys.path.append(os.path.dirname(next(find_default_config_files())))" | ||
init-hook="from pylint.config import find_default_config_files; import os, sys, pathlib; sys.path.append(next(find_default_config_files()).parent);sys.path.append(f'{pathlib.Path().home()}.local/lib/python{sys.version_info[0]}.{sys.version_info[1]}/site-packages/');" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed the linters were missing some paths. This command adds them. I can make this a separate PR, if needed.
Signed-off-by: fruffy <[email protected]>
Signed-off-by: fruffy <[email protected]>
85f3eea
to
4d61010
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I at least read through the changes, and nothing seems objectionable. The tests all still pass, so that is good. I won't claim to have done the level of review that I would have caught anything extremely subtle.
This PR refactors the
run-bmv2-test.py
script in the BMv2 folder. The old script was hard to maintain and didn't use a lot of the tooling we now have available.The new version has types and uses argparse properly. It also calls into the common logging facilities provided by testutils. The script is more compact and simpler to edit now.
@jafingerhut After this refactor, we can also add #4906 on top of it. I will take care of it.