-
Notifications
You must be signed in to change notification settings - Fork 604
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
tests: fix overeager chmod -x in restore #15232
Conversation
Mon Mar 24 08:49:01 UTC 2025 Spread tests skipped |
@@ -40,7 +40,7 @@ execute: | | |||
# small hole to allow that. | |||
chmod +x /run/user/"$(id -u test)" ~test | |||
# The runtime directory will be removed by now. | |||
tests.cleanup defer chmod -x ~test | |||
tests.cleanup defer chmod o-x ~test |
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.
can you stat -c '%a' ~test
before and restore the same in defer?
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.
Done
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!
The intent was to remove the x permission in the "other" group, not for everyone. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
0220055
to
4a96f8f
Compare
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.
LGTM
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #15232 +/- ##
========================================
Coverage 78.09% 78.10%
========================================
Files 1190 1192 +2
Lines 158458 159146 +688
========================================
+ Hits 123746 124296 +550
- Misses 27017 27117 +100
- Partials 7695 7733 +38
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The intent was to remove the x permission in the "other" group, not for everyone.