-
Notifications
You must be signed in to change notification settings - Fork 16
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: Modify deployment for real hw tests #179
tests: Modify deployment for real hw tests #179
Conversation
This patch modifies the test_build_and_deploy method to work even when testing with real hardware where the machine has already been pre-deployed in the model. The attaching of required resources after the bundle deployment is handled here as well. The test execution logic has also been slightly tweaked. If the --collectors option is provided, then ONLY the real hardware dependent tests will be executed (marked with the "realhw" marker, belonging to TestCharmWithHW). If the option not provided, the hardware independent tests (in TestCharm) will be executed. If full tests are required, a make target can be created which runs the pytest command with and without providing collectors. Some logic has also been added to ensure that the test_build_and_deploy function will run for both, hardware dependent and independent tests.
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.
Needs information
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.
LGTM. I will approve it after addressing Ray's comment.
0081f38
to
898d6dd
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.
LGTM
This patch modifies the
test_build_and_deploy
method to work even when testing with real hardware where the machine has already been pre-deployed in the model. The attaching of required resources after the bundle deployment is handled here as well.The test execution logic has also been slightly tweaked. If the
--collectors
option is provided, then ONLY the real hardware dependent tests will be executed (marked with the "realhw" marker, belonging toTestCharmWithHW
). If the option not provided, the hardware independent tests (inTestCharm
) will be executed. If full tests are required, a make target can possibly be created which runs the pytest command with and without providing collectors.Some logic has also been added to ensure that the
test_build_and_deploy
function will run for both, hardware dependent and independent tests.