Skip to content
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
feature/PPM-322-add-skip-init-for-boardfarm
Draft

PPM-322 Add ability to skip init in boardfarm tests#1589
aciliketcap wants to merge 1 commit intomasterfrom
feature/PPM-322-add-skip-init-for-boardfarm

Conversation

@aciliketcap
Copy link
Collaborator

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.

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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant