Fix the insertion of USB3 Gen2x1 device could not being detected (Bugfix) #1438
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
We had a usb3 gen2x1 device which used to the type-c usb3 test. But it failed to be detected by checkbox when plug in. The Bug is: The hotplug of a usb-c disk works well but com.canonical.certification::usb-c/insert test failed #1437
The reason of this issue is that the new run_watcher didn't cover this type of usb3 device.
Resolved issues
We had a usb3 gen2x1 device which used to the type-c usb3 test. But it failed to be detected by checkbox when plug in. The Bug is: The hotplug of a usb-c disk works well but com.canonical.certification::usb-c/insert test failed #1437
The reason of this issue is that the new run_watcher didn't cover this type of usb3 device.
Documentation
Tests
Run the usb3-typec insert test:
==============[ Running job 3 / 3. Estimated time left: 0:00:30 ]===============
--------[ USB 3.0 storage device insertion detected on USB Type-C port ]--------
ID: com.canonical.certification::usb-c/insert
Category: com.canonical.plainbox::usb
Purpose:
This test will check that the system correctly detects the insertion of
a USB 3.0 storage device in a USB Type-C connector.
NOTE: Make sure the USB storage device has a partition before starting
the test.
Steps:
Pick an action
=> press ENTER to continue
c => add a comment
s => skip this job
q => save the session and quit
[csq]:
... 8< -------------------------------------------------------------------------
INSERT NOW
Timeout: 30 seconds
super_speed_plus_gen2x1_usb was inserted. Controller: xhci_hcd, Number: 54
usable partition: sda1
USB3 insertion test passed.
cache file usb_insert_info is at: /var/tmp/checkbox-ng/sessions/checkbox-run-2024-08-29T03.21.05.session/session-share
------------------------------------------------------------------------- >8 ---
Outcome: job passed
Finalizing session that hasn't been submitted anywhere: checkbox-run-2024-08-29T03.21.05
==================================[ Results ]===================================
☑ : Collect information about supported types of USB
☑ : Hardware Manifest
☑ : USB 3.0 storage device insertion detected on USB Type-C port
Run the usb3 insert test with usb3 gen1 disk insert:
==============[ Running job 2 / 2. Estimated time left: 0:02:00 ]===============
-----------------[ USB 3.0 storage device insertion detected ]------------------
ID: com.canonical.certification::usb3/insert
Category: com.canonical.plainbox::usb
Purpose:
Check system can detect insertion of a USB 3.0 storage device.
NOTE: Make sure the USB storage device has a partition before starting
the test.
Steps:
Pick an action
=> press ENTER to continue
c => add a comment
s => skip this job
q => save the session and quit
[csq]:
... 8< -------------------------------------------------------------------------
INSERT NOW
Timeout: 30 seconds
super_speed_usb was inserted. Controller: xhci_hcd, Number: 53
usable partition: sda2
USB3 insertion test passed.
cache file usb_insert_info is at: /var/tmp/checkbox-ng/sessions/checkbox-run-2024-08-29T02.49.03.session/session-share
------------------------------------------------------------------------- >8 ---
Outcome: job passed
Finalizing session that hasn't been submitted anywhere: checkbox-run-2024-08-29T02.49.03
==================================[ Results ]===================================
☑ : Collect information about supported types of USB
☑ : USB 3.0 storage device insertion detected