~checkbox-dev/checkbox:metabox-fix-audio-job

Last commit made on 2023-05-22
Get this branch:
git clone -b metabox-fix-audio-job https://git.launchpad.net/~checkbox-dev/checkbox

Branch merges

Branch information

Name:
metabox-fix-audio-job
Repository:
lp:~checkbox-dev/checkbox

Recent commits

7034d5c... by Sylvain Pineau

Fix the AudioPlayback scenario to not depend on the base provider

The Audio scenario ran the com.canonical.certification::audio/playback_auto
job from the base provider.

The new metabox provider job is using a lighter version of the
gst_pipeline_test.py script and does not depend on the udev resource.

3fec670... by Massimiliano Girardi

Removed wrong `-a` switch from bluetoothctl tests (#478)

Before ver 5.64 bluetoothctl ignored the missing parameter to
`-a` making the instructions "correct". Now it errors out due
to the missing AGENT parameter (that we do not need or provide)

086e4e7... by Maciej Kisielewski

Metabox transport scenarios (#471)

add: metabox scenarios for transport section

2ebbb37... by Maciej Kisielewski

fix: metabox exiting on successful rollback (#470)

Co-authored-by: Devices Certification Bot <email address hidden>

0c9b922... by Maciej Kisielewski

Fix: make a warning about bad secure_id more informative (#469)

7d2ba48... by Sylvain Pineau

Add missing __init__.py in Metabox config_files environment scenario (#467)

ceed0e8... by Sylvain Pineau

Switch to the ZFS storage driver for LXD (#465)

* Use a ZFS storage for LXD snapshots

* immediately start the checkbox service using systemctl enable --now

* wait for systemd on containers running the checkbox service

* Refactor rollback_to() using a while loop

016d878... by Sylvain Pineau

Fix the Metabox workflow to allow manual runs via workflow_dispatch (#464)

Manual runs don't depend on metabox_run_required

7dc9ef6... by Massimiliano Girardi

Metabox testing for Test Plan Selection (#452)

* Nominal launcher skip plan selection test

* Test that selection from the launcher works as intended

* Allow checking for stderr prints in metabox scenario

* Test that selecting non-existent test errors out

* Test that checkbox quits if promted to test with no unit

Checkbox should quit when asked to test but with no test plan
selected, printing some useful output error.

Minor: This also includes a comment explaining TestSelectionPlanPreselectFailWrongName

* Minor: Fixed typo in test name

* Fixed FailWrongName regex to match logger

The old regex assumed that the logger would print something
before the error message, while it is ok to not do so

* Adds error message for forced tp select no unit

Previously forcing the test plan selection would print a misleading
error message saying that the "unset" unit is not found. Now
it reports that it was not provided with any unit

* Support test plan selection from launcher in remote

Remote did not support test plan selection from the launcher because
it ignored the information, now it uses it

* Report missing selected test plan instead of crashing

Selecting a missing test plan from the launcher would lead to a
crash, now the exception is catched and the program exits with
the same error as legacy

* Added error to tp selection when missing unit in forced run

Added a new error message to avoid printing misleading
"missing unit `unset`" when a launcher forces tp selection
without giving any unit.

* Add tests for tp filtering via launcher

This adds two tests, one that excludes every test
the other excludes "smoke"

* Error reporting is now done in stderr

Remote did not repor this error in stderr via logger
while legacy did, unifying the behaviour in stderr

* Apply new naming as suggested in code review

This refactors TestSelectionPlan... into TestPlan or TestPlanSelection where necessary

Co-authored-by: Sylvain Pineau <email address hidden>

* Inject failing conf to test launcher precedence

* Added Start step after load conf

* Revert "Allow checking for stderr prints in metabox scenario"

This reverts commit 25ff683b6b8ce47c332841d1330ef7c6cca7e3b9.
because the function was implemented in another way in main

* Moved tests from AssertPrintedError to AssertPrinted

---------

Co-authored-by: Sylvain Pineau <email address hidden>

31941ec... by Maciej Kisielewski

add: metabox scenarios for the daemon section (#458)

* add: metabox scenarios for the daemon section

* typo fix

* remove unnecessary import

---------

Co-authored-by: Devices Certification Bot <email address hidden>