This repository was archived by the owner on Sep 7, 2020. It is now read-only.
PPM-322 Add ability to skip init in boardfarm tests#1589
Draft
aciliketcap wants to merge 1 commit intomasterfrom
Draft
PPM-322 Add ability to skip init in boardfarm tests#1589aciliketcap wants to merge 1 commit intomasterfrom
aciliketcap wants to merge 1 commit intomasterfrom
Conversation
If you add an attribute-value pair '"skip-init": "True",' to a
prplmesh_docker device definition in
tests/boardfarm_plugins/boardfarm_prplmesh/prplmesh_config.json file
then docker initialization for that device will be skipped.
An example setup where initialization for all docker containers are
skipped is as follows:
{
"prplmesh_docker": {
"name": "agent",
"board_type": "prplmesh_docker",
"skip-init": "True",
"role": "agent",
"conn_cmd": "",
"devices": [
{
"name": "lan",
"type": "prplmesh_docker",
"skip-init": "True",
"role": "controller",
"conn_cmd": ""
},
{
"name": "lan2",
"type": "prplmesh_docker",
"skip-init": "True",
"role": "agent",
"conn_cmd": ""
},
{
"name": "wifi",
"type": "STA_dummy",
"mac": "51:a1:10:20:00:01",
"conn_cmd": ""
}
]
}
}
Note that care must be taken when skipping initialization. It should
only be used for development purposes and even then for some tests
restarting the docker containers and prplmesh applications each time can
be mandatory.
Signed-off-by: Sinan Akpolat <aciliketcap@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It can take up to 1-2 minutes to run a single test in boardfarm. Too much time is spent for container / prplwrt to become "up" and prplMesh applications to get to running state.
This PR adds ability to skip the initialization for test development purposes where a single test is run multiple times during development and debugging.