-
Notifications
You must be signed in to change notification settings - Fork 44
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
Bring mbed_host_tests (htrun) into standlone greentea python library #302
Conversation
8ab6bdb
to
dbb6709
Compare
Are we planning to ship multiple python packages from this repository? I would suggest we don't do that, and use a one-to-one mapping of repository to python package. This is because it is much easier to set up auto versioning and release CI when the repo contains a single python package. It also helps with maintainability as the repo isn't as bloated. |
5536647
to
0d012dc
Compare
This PR is ready for review as changes are split into multiple commits |
- Move host-tests from mbed-o-tools into greentea repo
742d872
to
f91283b
Compare
- Add required __init__.py module (copied from mbed-os-tools/packages/mbed-host-tests) - Rename hotst-tests to htrun (host-tests runner) as it is a framework to run a test on the host side. - Update header section to 2021 year - Update import from htrun instead of mbed-os-tools
- Added setup.py to create a single greentea python package for building, distributing, and installing Greentea standalone python library using the DistUtils. - Combined Greentea CLI and htrun (host-tests runner) into a single setup script (setup.py) as going further `pip install greentea` does the installation of both CLI and htrun Note: still, Requirements.txt requires to keep mbed-host-tests until we upload new greentea source distro into pippy
Note: Unfortunately found that some of the unused code and needs a further cleanup
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.
Looks OK to me. Would be good for someone else to also take a look at this, as there are a lot of changes. @ARMmbed/mbed-os-core
@LDong-Arm @rwalton-arm reviewed this PR and approved it, it would be great if you can also review this PR |
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.
Looks good to me as an initial PR to import the code.
@rajkan01 Just out of curiosity, what commands/functionalities have you tried? And as the tests are also imported, did you get a chance to run them? (Could be tested when we add automated testing.)
@LDong-Arm Thanks for reviewing and I tried this command |
mbed-host-tests is responsible for the mbedhtrun CLI module and it is maintaining and development happens from mbed-os-tools but making greentea library standalone as part of that mbed-host-tests moved from tools repo into this standalone greentea repo