Skip to content

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

Merged
zhouhao3 merged 2 commits intoopencontainers:masterfrom
kinvolk-archives:dongsu/test-rootfs-prop
Jun 8, 2018
Merged

validation: add more test cases for private & slave propagations#650
zhouhao3 merged 2 commits intoopencontainers:masterfrom
kinvolk-archives:dongsu/test-rootfs-prop

Conversation

@dongsupark
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown
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!

@dongsupark dongsupark force-pushed the dongsu/test-rootfs-prop branch from 1e72c1b to e2d34c1 Compare June 8, 2018 06:58
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
Copy Markdown

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.

2 participants