-
Notifications
You must be signed in to change notification settings - Fork 138
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
Fix BWC test suite #1426
Fix BWC test suite #1426
Conversation
Signed-off-by: Sicheng Song <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Codecov Report
@@ Coverage Diff @@
## 2.x #1426 +/- ##
============================================
+ Coverage 78.36% 78.37% +0.01%
+ Complexity 2345 2344 -1
============================================
Files 195 195
Lines 9529 9529
Branches 944 944
============================================
+ Hits 7467 7468 +1
+ Misses 1635 1634 -1
Partials 427 427
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: Sicheng Song <[email protected]>
osVersionArrayList.add(Integer.parseInt(matcher.group())); | ||
} | ||
if (osVersionArrayList.size() >= 2) { | ||
return (osVersionArrayList.get(0) > 2 || osVersionArrayList.get(1) > 4); |
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.
Thanks for fixing this. Can you add some comments for these magic numbers: 2, 4? Also add some example osVersion to explain ?
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.
Added.
Signed-off-by: Sicheng Song <[email protected]>
* Fix BWC test suite Signed-off-by: Sicheng Song <[email protected]> * Debugging BWC Signed-off-by: Sicheng Song <[email protected]> * Fix regex expression Signed-off-by: Sicheng Song <[email protected]> * Add some doc and examples to explain how fix works Signed-off-by: Sicheng Song <[email protected]> --------- Signed-off-by: Sicheng Song <[email protected]> (cherry picked from commit ab216d5)
* Fix BWC test suite Signed-off-by: Sicheng Song <[email protected]> * Debugging BWC Signed-off-by: Sicheng Song <[email protected]> * Fix regex expression Signed-off-by: Sicheng Song <[email protected]> * Add some doc and examples to explain how fix works Signed-off-by: Sicheng Song <[email protected]> --------- Signed-off-by: Sicheng Song <[email protected]> (cherry picked from commit ab216d5) Co-authored-by: Sicheng Song <[email protected]>
Description
This PR should unblock BWC test. Now we use regex to judge if OS version is updated or not.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.