From d64c3afe1bc821dc9504d63b7e7be8e65e210184 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 4 Jan 2021 19:14:13 -0800 Subject: [PATCH] tests/int/mount.bats: reformat Easier to read mounts. No functional change. Signed-off-by: Kir Kolyshkin --- tests/integration/mounts.bats | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/integration/mounts.bats b/tests/integration/mounts.bats index 4bc2e134b..4be19f50e 100644 --- a/tests/integration/mounts.bats +++ b/tests/integration/mounts.bats @@ -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