Files
runc/tests/integration/mounts_propagation.bats
T
Yusuke Sakurai 04be81b6a3 fix rootfs propagation mode
Signed-off-by: Yusuke Sakurai <yusuke.sakurai@3-shake.com>
2025-05-19 12:55:35 +00:00

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" ]
}