manifest has_bt_adapter ignored when running bluetooth/detect job (UC20, CDTS)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Expired
|
Medium
|
Unassigned |
Bug Description
[Summary]
$ snap list
Name Version Rev Tracking Publisher Notes
cdts 0.8 186 uc20/stable ce-certification-qa devmode
checkbox20 1.23 621 latest/stable ce-certification-qa -
Using CDTS to test a device without a BT adapter.
When asked by Checkbox if device has a BT adapter, I select "No". In the Manifest, it shows as:
$ cdts.checkbox-cli run com.canonical.
=======
--------------[ Running job 1 / 1. Estimated time left: 0:00:01 ]---------------
-------
ID: com.canonical.
Category: com.canonical.
... 8< -------
ns: com.canonical.
name: certification-
ns: com.canonical.
name: plainbox-
has_audio_playback:
has_audio_capture:
has_audio_
has_bt_adapter: False
has_bt_smart:
has_rpi_camera:
has_camera:
has_ethernet_
has_fingerprint
gpio_loopback:
has_i2c: True
has_special_keys:
has_card_reader:
has_muxpi_hdmi:
socket_
has_thunderbolt:
has_thunderbolt3:
has_touchscreen:
has_tpm_chip:
has_usb_type_c:
has_usb_storage: True
has_hardware_
has_wlan_adapter: False
has_wwan_module: False
ns: com.canonical.
name: plainbox-
ns: com.intel.ipdt
name: plainbox-
ns: com.canonical.
name: plainbox-
ns: com.canonical.
name: plainbox-
ns: com.canonical.
name: plainbox-
has_tpm2_chip:
-------
Outcome: job passed
The Bluetooth detect job requires the "has_bt_adapter":
$ cdts.checkbox-cli list 'all-jobs' -f "{id}, {requires}\n" | grep bluetooth/detect
bluetooth/detect, manifest.
However, if I run it, instead of being skipped because it does not match the requirements, it's executed and fails:
$ cdts.checkbox-cli run .*bluetooth/detect
(...)
--------------[ Running job 2 / 2. Estimated time left: 0:00:02 ]---------------
------------[ Make sure at least one bluetooth device is detected ]-------------
ID: com.canonical.
Category: com.canonical.
... 8< -------
No bluetooth adatpers registered with rfkill
-------
Outcome: job failed
[Additional information]
CID: 202109-29496
SKU:
Image: 20211020.4
system-
system-
bios-version: UNEHAM0D
CPU: Intel Atom(R) x6425RE Processor @ 1.90GHz (4x)
GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:4571] (rev 01)
kernel-version: 5.13.0-1007-intel
[Stage]
Issue reported and logs collected right after it happened
Automatically attached