template-filter for usb/storage-preinserted-{name} should include all removable USB partitions

Bug #1802219 reported by Kristin Chuang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Provider for Plainbox - Snappy
Fix Released
Undecided
Unassigned

Bug Description

The test case usb/storage-preinserted-{name} currently has this template filter:
template-filter: removable_partition.bus == "usb"[1]

This as a result only creates usb/storage-preinserted-{name} test cases for USB2.0 buses. For others (e.g. USB3[2]), this case will not be created at all.

We would need the value of template-filter to include all types of usb buses.

* Checkbox version: checkbox-snappy: 1426

Revision history for this message
Kristin Chuang (kristinchuang) wrote :

[1]https://git.launchpad.net/plainbox-provider-snappy/tree/units/usb/usb.pxu

[2] Example of a system that has usb3 bus:
u@localhost:~$ checkbox-snappy.checkbox-cli run com.canonical.certification::removable_partition
===========================[ Running Selected Jobs ]============================
--------------[ Running job 1 / 1. Estimated time left: 0:00:00 ]---------------
----------------[ Collect removable partitions info from udev ]-----------------
ID: com.canonical.certification::removable_partition
Category: com.canonical.plainbox::uncategorised
... 8< -------------------------------------------------------------------------
path: /devices/pci0000:00/0000:00:13.0/0000:01:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc1/mmc1:59b4/block/mmcblk1/mmcblk1p1
name: mmcblk1p1
bus: mmc
category: PARTITION
product: mmcblk1p1
product_slug: mmcblk1p1

path: /devices/pci0000:00/0000:00:15.0/usb2/2-1/2-1:1.0/host2/target2:0:0/2:0:0:0/block/sdb/sdb1
name: sdb1
bus: usb3
category: PARTITION
product: sdb1
product_slug: sdb1

description: updated
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

Could you please attach the output of `udevadm info -e` with both usb stick and mediacard inserted please?

Revision history for this message
Kristin Chuang (kristinchuang) wrote :
Changed in plainbox-provider-snappy:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.