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

validation: add more test cases for private & slave propagations #650

Merged

Conversation

dongsupark
Copy link
Contributor

We should test rootfs propagation modes, not only shared and unbindable, but also slave and private.

Also squash tests that are relevant to rootfs propagation into a single file, linux_rootfs_propagation.go.

Also print TAP output for rootfs_propagation tests.

"github.com/opencontainers/runtime-tools/validation/util"
)

func testLinuxRootPropagation(t *tap.T, propMode string) error {
Copy link

Choose a reason for hiding this comment

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

Input parameter t is not used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@q384566678 Removed t. Thanks!

Dongsu Park added 2 commits June 8, 2018 08:59
To make the test code simpler, squash tests that are relevant to
rootfs propagation into a single file, linux_rootfs_propagation.go.
Also print TAP output for rootfs_propagation tests.

Signed-off-by: Dongsu Park <dongsu@kinvolk.io>
We should test rootfs propagation modes, not only shared and unbindable,
but also slave and private.

Signed-off-by: Dongsu Park <dongsu@kinvolk.io>
@zhouhao3
Copy link

zhouhao3 commented Jun 8, 2018

LGTM

Approved with PullApprove

@zhouhao3 zhouhao3 merged commit e963cf4 into opencontainers:master Jun 8, 2018
@dongsupark dongsupark deleted the dongsu/test-rootfs-prop branch June 8, 2018 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants