fix detecting insertion/removal of tb3 drive (BugFix)#930
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #930 +/- ##
==========================================
+ Coverage 37.43% 37.49% +0.05%
==========================================
Files 313 313
Lines 34742 34794 +52
Branches 5870 5982 +112
==========================================
+ Hits 13006 13046 +40
+ Misses 21191 21168 -23
- Partials 545 580 +35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
The insert/removal jobs now run the same script on core/classic but the storage test still use |
Contributor
Author
Yes. I got this result: |
LiaoU3
pushed a commit
to LiaoU3/checkbox
that referenced
this pull request
Mar 20, 2024
fix detecting insertion/removal of tb3 drive Fixes: canonical#97, CHECKBOX-1123
binli
pushed a commit
to binli/checkbox
that referenced
this pull request
Mar 22, 2024
fix detecting insertion/removal of tb3 drive Fixes: canonical#97, CHECKBOX-1123
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Fix Thunderbolt "insert" and "remove" tests on Classic.
On classic images the "scsi detection" that was employed by the job definition did not work.
Historically we've had two version of insertion/removal detection code: one for Classic and one for Core. The patch that introduced the tests was using this approach, but in fact it was it was not needed, as the version provided by the implementation in checkbox-support (that was used exclusively for UC) works on both.
The patch I'm proposing here makes Checkbox use the working one, regardless of whether we're running on UC or Classic, thus fixing the problem
Resolved issues
Fixes: #97, CHECKBOX-1123
Documentation
No changes.
Tests
Tested on classic image with the tb3 drive.