-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add test for workdir being a symlink to another folder #11915
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
base: master
Are you sure you want to change the base?
Conversation
Should only pass after google#11910 is merged in. Thanks @avagin for help here!
LGTM. Thanks. |
Should only pass after #11910 is merged in. Thanks @avagin for help here! #11910 (comment) FUTURE_COPYBARA_INTEGRATE_REVIEW=#11915 from ekzhang:add-test-symlink-workdir a8cf826 PiperOrigin-RevId: 783271203
Should only pass after #11910 is merged in. Thanks @avagin for help here! #11910 (comment) FUTURE_COPYBARA_INTEGRATE_REVIEW=#11915 from ekzhang:add-test-symlink-workdir a8cf826 PiperOrigin-RevId: 783271203
Should only pass after #11910 is merged in. Thanks @avagin for help here! #11910 (comment) FUTURE_COPYBARA_INTEGRATE_REVIEW=#11915 from ekzhang:add-test-symlink-workdir a8cf826 PiperOrigin-RevId: 783271203
Should only pass after #11910 is merged in. Thanks @avagin for help here! #11910 (comment) FUTURE_COPYBARA_INTEGRATE_REVIEW=#11915 from ekzhang:add-test-symlink-workdir a8cf826 PiperOrigin-RevId: 783271203
Should only pass after #11910 is merged in. Thanks @avagin for help here! #11910 (comment) FUTURE_COPYBARA_INTEGRATE_REVIEW=#11915 from ekzhang:add-test-symlink-workdir a8cf826 PiperOrigin-RevId: 783271203
Should only pass after #11910 is merged in. Thanks @avagin for help here! #11910 (comment) FUTURE_COPYBARA_INTEGRATE_REVIEW=#11915 from ekzhang:add-test-symlink-workdir a8cf826 PiperOrigin-RevId: 783271203
Should only pass after #11910 is merged in. Thanks @avagin for help here! #11910 (comment) FUTURE_COPYBARA_INTEGRATE_REVIEW=#11915 from ekzhang:add-test-symlink-workdir a8cf826 PiperOrigin-RevId: 783271203
This test fails on buildkite:
|
|
||
// Additional test: verify we can actually use the working directory | ||
// by creating a file in it | ||
_, err = d.Run(ctx, opts, "sh", "-c", "echo 'test content' > testfile && cat testfile") |
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.
you can combine this command with the previous one to avoid executing the same container twice.
|
||
// Test that the container can start with symlinked working directory | ||
// and that pwd returns the symlinked path | ||
got, err := d.Run(ctx, opts, "sh", "-c", "pwd") |
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.
In gVisor, pwd
returns targetDir
, which differs from Linux's behavior. However, this doesn't like a critical issue. You can file a separate issue for that.
Should only pass after #11910 is merged in.
Thanks @avagin for help here!
#11910 (comment)