mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
tests/int/mount.bats: reformat
Easier to read mounts. No functional change. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -12,7 +12,11 @@ function teardown() {
|
||||
}
|
||||
|
||||
@test "runc run [bind mount]" {
|
||||
update_config ' .mounts += [{"source": ".", "destination": "/tmp/bind", "options": ["bind"]}]
|
||||
update_config ' .mounts += [{
|
||||
source: ".",
|
||||
destination: "/tmp/bind",
|
||||
options: ["bind"]
|
||||
}]
|
||||
| .process.args |= ["ls", "/tmp/bind/config.json"]'
|
||||
|
||||
runc run test_busybox
|
||||
@@ -21,7 +25,12 @@ function teardown() {
|
||||
}
|
||||
|
||||
@test "runc run [ro tmpfs mount]" {
|
||||
update_config ' .mounts += [{"source": "tmpfs", "destination": "/mnt", "type": "tmpfs", "options": ["ro", "nodev", "nosuid", "mode=755"]}]
|
||||
update_config ' .mounts += [{
|
||||
source: "tmpfs",
|
||||
destination: "/mnt",
|
||||
type: "tmpfs",
|
||||
options: ["ro", "nodev", "nosuid", "mode=755"]
|
||||
}]
|
||||
| .process.args |= ["grep", "^tmpfs /mnt", "/proc/mounts"]'
|
||||
|
||||
runc run test_busybox
|
||||
|
||||
Reference in New Issue
Block a user