Skip to content
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

libct/cg: add test for remove a non-existent dir in a ro mount point #4526

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

lifubang
Copy link
Member

This is a unit test for the similar issue of #4518.

@lifubang lifubang changed the title libct/cg: add test for remove a non-exist dir in a ro mount point libct/cg: add test for remove a non-existent dir in a ro mount point Nov 14, 2024
Comment on lines 679 to 681
defer func() {
_ = unix.Unmount(dirTo, 0)
}()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I overlooked it the first time. This defer should be added after the first mount, not after the second one. Not very important though since the second one shouldn't fail.

Copy link
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one nit, but overall lgtm

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kolyshkin kolyshkin merged commit 9b3fe30 into opencontainers:main Nov 15, 2024
40 checks passed
@kolyshkin kolyshkin added the backport/1.2-done A PR in main branch which has been backported to release-1.2 label Nov 15, 2024
@kolyshkin
Copy link
Contributor

1.2 backport: #4531

@lifubang lifubang deleted the test-cgroup-removepath branch November 15, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci backport/1.2-done A PR in main branch which has been backported to release-1.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants