-
Notifications
You must be signed in to change notification settings - Fork 49
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 some issues related with the test case power-management/lid_close_suspend_open (Bugfix) #1093
Fix some issues related with the test case power-management/lid_close_suspend_open (Bugfix) #1093
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1093 +/- ##
==========================================
- Coverage 44.17% 41.48% -2.70%
==========================================
Files 359 341 -18
Lines 38812 37754 -1058
Branches 6581 6412 -169
==========================================
- Hits 17147 15661 -1486
- Misses 21003 21451 +448
+ Partials 662 642 -20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@eugene-yujinwu please remove the latest white space character from the title for the validate_title check. |
Done. Thanks! |
@eugene-yujinwu |
@clairlin53 Thank you for your comment. I think it makes sense to keep this case, as shown by the bugs you mentioned , we have indeed encountered situations in the past where the first close lid worked fine, but the second close lid had a problem. |
Add the power-management/lid test back per Clair's comments. |
Reopen it. Thank @vincent! |
@eugene-yujinwu I am thinking about that the 30 seconds is the default value defined in the |
7edb633
to
ab7d95c
Compare
@eugene-yujinwu please change the status of this PR to |
…_suspend_open (bugfix) (canonical#1080) - Include a note to ensure the test is executed at the appropriate time - Fix the typo in the test order number - Remove functionally similar test cases power-management/lid from the test plan - Adjust the place of test case to avoid running it just after the suspend case
Co-authored-by: stanley31huang <[email protected]>
ab7d95c
to
ed500ba
Compare
@stanley31huang just rebase the commit and reopen the review. But I cannot figure out why some of the unit tests failed. Do you have any idea or hints? Thanks! |
@stanley31huang , finally I make the unit tests passed:). could you kindly review this, thanks! |
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.
Nice quality of life improvement on this job!
I feel like the Shell script is becoming really big and hard to maintain, and it is not tested... I think it would be worthwhile to convert it into a Python script with unit tests.
That said, I've made a few comments and added some suggestions.
…ments Co-authored-by: Pierre Equoy <[email protected]>
@pieqq Thanks for review. A new commit was pushed per your suggestion. Could you kindly review it. Thanks! |
@pieqq Do you think I should drop this PR, and rewrite it with python and submit a new PR? |
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.
+1, thanks!
Let'd land this. You can keep a note to improve it later (switch to Python + add unit tests). |
Thank you @pieqq . OK, let's do it later. |
Fix some issues related with the test case power-management/lid_close_suspend_open (bugfix) (#1080)
Description
Resolved issues
Documentation
Tests