-
Notifications
You must be signed in to change notification settings - Fork 400
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(test): running tests no longer requires to be root #2429
Conversation
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.
I will close #2217 in favor of this 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.
FWIW, this line would also have to be removed:
Line 4 in 6af3fcf
@[ "$(shell id -u)" = 0 ] || { echo "'check' must be run as root! Please use 'sudo'."; exit 1; } |
Thanks @aafeijoo-suse for the review. |
Sorry, I missed that change somehow... it's all good |
CC @bdrung for his possible feedback |
+1 from my side. I tested the patch from this PR plus #2484 successfully for the tests 01 02 03 04 on Debian and Ubuntu. One caveat: The kernel on Ubuntu is only readable by root. So either make it readable or run as root. See https://launchpad.net/bugs/759725 |
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.
Please remove sudo
from the Docker files in test/container/
.
Remove sudo from test containers.
After fd9cd02, tests no longer requires to be root. Being able to run VMs to run tests is required, but that should not imply root user.
Fixes #1147 and https://bugs.gentoo.org/298014