Merge ~andch/plainbox-provider-pc-sanity:check-fingerprint-device into plainbox-provider-pc-sanity:master

Proposed by Andy Chi
Status: Needs review
Proposed branch: ~andch/plainbox-provider-pc-sanity:check-fingerprint-device
Merge into: plainbox-provider-pc-sanity:master
Diff against target: 89 lines (+59/-0)
3 files modified
bin/detect-fingerprint.sh (+46/-0)
units/pc-sanity/pc-sanity-fingerprint.pxu (+11/-0)
units/pc-sanity/pc-sanity.pxu (+2/-0)
Reviewer Review Type Date Requested Status
jeremyszu (community) Needs Fixing
Alex Tu Pending
Kai-Chuan Hsieh Pending
OEM Solutions Group: Engineers Pending
Review via email: mp+416203@code.qastaging.launchpad.net

Commit message

Add test case to check if USB fingerprint device is supported in upstream and ubuntu release libfprint or not.

Test on Synaptics DUT.

Case 1: Upstream supported but not in ubuntu release package
Category: com.canonical.plainbox::miscellanea
... 8< -------------------------------------------------------------------------
--2022-03-01 22:56:41-- https://raw.githubusercontent.com/freedesktop/libfprint/master/data/autosuspend.hwdb
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 2606:50c0:8003::154, 2606:50c0:8002::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5720 (5.6K) [text/plain]
Saving to: ‘/tmp/autosuspend.hwdb’

     0K ..... 100% 37.4M=0s

2022-03-01 22:56:41 (37.4 MB/s) - ‘/tmp/autosuspend.hwdb’ saved [5720/5720]

Device ID 06cbp00f0 is supported in upstream
Please start SRU process to land the ID into current Release version
------------------------------------------------------------------------- >8 ---
Outcome: job failed
Finalizing session that hasn't been submitted anywhere: checkbox-run-2022-03-01T14.56.41
==================================[ Results ]===================================
 ☑ : Collect information about installed software packages
 ☒ : Check USB fingerprint device is supported or not.

Case 2: upstream supported and also ubuntu release package
--2022-03-01 22:58:20-- https://raw.githubusercontent.com/freedesktop/libfprint/master/data/autosuspend.hwdb
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5720 (5.6K) [text/plain]
Saving to: ‘/tmp/autosuspend.hwdb’

     0K ..... 100% 36.8M=0s

2022-03-01 22:58:21 (36.8 MB/s) - ‘/tmp/autosuspend.hwdb’ saved [5720/5720]

Device ID 27c6p63ac is supported in upstream
ID is supported in current libfprint
------------------------------------------------------------------------- >8 ---
Outcome: job passed
Finalizing session that hasn't been submitted anywhere: checkbox-run-2022-03-01T14.58.20
==================================[ Results ]===================================
 ☑ : Collect information about installed software packages
 ☑ : Check USB fingerprint device is supported or not.

To post a comment you must log in.
Revision history for this message
jeremyszu (os369510) wrote :

Please also ensure the variable is there before use.

review: Needs Fixing
Revision history for this message
OEM Taipei Bot (oem-taipei-bot) wrote :
Revision history for this message
OEM Taipei Bot (oem-taipei-bot) wrote :
Revision history for this message
OEM Taipei Bot (oem-taipei-bot) wrote :

[autopkgtest]
blame: .
badpkg: rules build failed with exit code 2
erroneous package: rules build failed with exit code 2

https://oem-share.canonical.com/partners/lyoncore/share/artifacts/plainbox-provider-pc-sanity/plainbox-provider-pc-sanity-1.0.1ubuntu1-b2d8b91-in-linux-container-jammy

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches