-
Notifications
You must be signed in to change notification settings - Fork 2k
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
dist: move testrunner to pythonlibs as package #9759
Conversation
03d153a
to
693d413
Compare
Nice one. I like it. |
@@ -16,6 +15,5 @@ def testfunc(child): | |||
|
|||
|
|||
if __name__ == "__main__": | |||
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner')) |
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.
The line below can now be moved with the other imports at the top of the script.
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.
yes will do
was suggested by @cladmi, but reading the linked blog-entry it sound reasonable to use |
7a42d3e
to
782e163
Compare
782e163
to
5f286f6
Compare
My bad, I did not know about this https://docs.python.org/3/library/constants.html#exit and never had issues before so was wondering why. |
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.
ACK, please squash!
As testrunner is moved to dist/pythonlibs which is exported via PYTHONPATH, testrunner is found by all test scripts.
Remove now obsolete sys.append from all tests, as testrunner was moved to dist/pythonlibs as proper package.
os package is imported by every test script but only used by a few, thus flake8 check reported errors.
Testrunner is now impported as a package found in PYTHONPATH, so import can be placed at the top of the script as usual.
1631293
to
3893f04
Compare
squashed, I'd still like to have an ACK by @cladmi on this one, too. So please don't merge right away, but leave him do it, thx. |
I will take care of reviewing after the release. |
Changes look good, I will re-run tests and see if something complains. |
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 could re-run tests on iotlab-m3.
Some gardening may need to be done after PRs still using
|
Contribution description
As testrunner is moved to dist/pythonlibs which is exported
via PYTHONPATH, testrunner is found by all test scripts.
Issues/PRs references
#9758