-
Notifications
You must be signed in to change notification settings - Fork 674
lib/pycriu: changing the default behavior to use the system binary #2795
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
lib/pycriu: changing the default behavior to use the system binary #2795
Conversation
|
Currently, pycriu attempts to use a local CRIU binary, but I believe This approach would provide a more “works out of the box” experience, |
8863130 to
5ea2efd
Compare
You need to add the local binary directory to PATH in all tests. |
5ac465b to
56830f5
Compare
Use system-installed CRIU binary instead of a local file Thanks to @avagin for suggesting this solution. Co-authored-by: Andrei Vagin <[email protected]> Signed-off-by: Andrii Herheliuk <[email protected]>
56830f5 to
4657214
Compare
Note that this behavior is for testing. We want to run tests with a locally built binary, not a system-installed one. |
|
@rst0git won't And does tests use criu.py at all? |
|
I do not know how to add PATH to tests. Can you guys help with that? |
|
@herheliuk What is the issue you are trying to fix with this change? |
|
I'm trying to make it as pleasant 'out of the box' experience as possible. Since it is unlikely for the binary to be in the same folder in normal circumstances, I recon most users would want to use a system-installed binary anyway, thus we want to make it a default behaviour. |
|
Tests might have been failing because I accidentally pushed my fork instead of origin rebase. You know better, but maybe we don't need to add the binary to PATH in tests. |
@rst0git I think this change is doing the right thing. By default, the library has to use the system-installed criu binary. |
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
Use system-installed CRIU binary instead of a local file
Thanks to @avagin for suggesting this solution.
Co-authored-by: Andrei Vagin [email protected]
Signed-off-by: Andrii Herheliuk [email protected]