Merge ~sylvain-pineau/checkbox-ng:mini-me into checkbox-ng:remote-api-bump
Status: | Superseded |
---|---|
Proposed branch: | ~sylvain-pineau/checkbox-ng:mini-me |
Merge into: | checkbox-ng:remote-api-bump |
Diff against target: |
481 lines (+366/-14) 6 files modified
checkbox_ng/launcher/checkbox_cli.py (+2/-0) checkbox_ng/launcher/mini_me.py (+327/-0) plainbox/impl/execution.py (+7/-0) plainbox/impl/session/assistant.py (+6/-0) plainbox/impl/session/remote_assistant.py (+23/-13) plainbox/impl/session/restart.py (+1/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Taihsiang Ho | Pending | ||
Review via email: mp+415609@code.launchpad.net |
This proposal supersedes a proposal from 2022-02-11.
Description of the change
the checkbox-cli mini-me command (see the commits for details)
How to test?
The standalone command (quick an easy):
$ checkbox-cli mini-me --host 192.168.1.33 com.canonical.
Nested inside an existing checkbox remote/service session:
1. Prepare the following launcher (adjust the target host ip of course):
[launcher]
app_id = com.canonical.
launcher_
stock_reports = text, submission_files
[test plan]
unit = com.canonical.
forced = yes
[test selection]
forced = yes
[ui]
output = hide-resource-
[environment]
STRESS_
STRESS_
STRESS_
TARGET_
2. A small test plan like this:
id: demo
unit: test plan
_name: demo tests
_description:
demo tests
include:
demo/
3. A demo job calling the new command:
plugin: shell
category_id: com.canonical.
id: demo/usb/detect
command:
checkbox-cli mini-me com.canonical.
_summary: Display USB devices attached to SUT
_description: Detects and shows USB devices attached to this system.
4. Install checkbox-ng and the checkbox provider from the dev ppa on a spare system
5. From your laptop, start a checkbox service (after adding the test plan and the new job to one of your local providers, side-loading one is a good idea):
sudo checkbox-cli service
6. Finally execute your launcher file with:
checkbox-cli master 127.0.0.1 ./mylauncher
If everything goes well, the usb/detect output should list devices from your spare system
Some diff-like unwanted lines are still in the merge proposal. See the inline comments below.