-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using "New USB device found" for all usbs (BugFix) #1480
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1480 +/- ##
=======================================
Coverage 47.10% 47.10%
=======================================
Files 368 368
Lines 39435 39435
Branches 6667 6667
=======================================
Hits 18574 18574
Misses 20156 20156
Partials 705 705
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Test with our USB3.2 disk, replaced with: The test report: This test will check that the system correctly detects the insertion of Steps:
Pick an action --------- Testing insertion --------- INSERT NOW Timeout: 30 seconds ------- Insertion test passed ------- --------- Testing read/write -------- ------- Read/Write test passed ------- ---------- Testing removal ---------- REMOVE NOW Timeout: 30 seconds -------- Removal test passed -------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to have a more unified way to test these!
I'm wondering if we should have some kind of integration test using real samples from existing kernels to make sure things don't break if we modify this test in the future, but I guess that's a wish more than something that's required for this to land.
+1
Description
Currently, we only are reading the "uas" string to detect the insertion of an USB 3.0 device. This may cause some wrong detections if we have some other journalctl messages.
This PR changes that string for detection to "New USB device found", which can be used for all USB types.
Resolved issues
N/A
Documentation
N/A
Tests
Tested with usb2 usb3 and usb-c in a 22.04 laptop