mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
04be81b6a3
Signed-off-by: Yusuke Sakurai <yusuke.sakurai@3-shake.com>
23 lines
398 B
Bash
23 lines
398 B
Bash
#!/usr/bin/env bats
|
|
|
|
load helpers
|
|
|
|
function setup() {
|
|
requires root
|
|
setup_debian
|
|
}
|
|
|
|
function teardown() {
|
|
teardown_bundle
|
|
}
|
|
|
|
@test "runc run [rootfsPropagation shared]" {
|
|
update_config ' .linux.rootfsPropagation = "shared" '
|
|
|
|
update_config ' .process.args = ["findmnt", "--noheadings", "-o", "PROPAGATION", "/"] '
|
|
|
|
runc run test_shared_rootfs
|
|
[ "$status" -eq 0 ]
|
|
[ "$output" = "shared" ]
|
|
}
|