diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 823bd7d6ba..5ff1fb29ba 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -1140,16 +1140,19 @@ EOF CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman 1 run --rm $IMAGE touch /testro CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman run --rm --read-only=false $IMAGE touch /testrw - CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman run --rm $IMAGE touch /tmp/testrw - for dir in /tmp /var/tmp /dev /dev/shm /run; do - CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman run --rm $IMAGE touch $dir/testro - CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman run --rm --read-only=false $IMAGE touch $dir/testro - CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman run --rm --read-only=false --read-only-tmpfs=true $IMAGE touch $dir/testro - CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman run --rm --read-only-tmpfs=true $IMAGE touch $dir/testro - CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman 1 run --rm --read-only-tmpfs=false $IMAGE touch $dir/testro - assert "$output" =~ "touch: $dir/testro: Read-only file system" - done + files="/tmp/a /var/tmp/b /dev/c /dev/shm/d /run/e" + CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman run --rm $IMAGE touch $files + CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman run --rm --read-only=false $IMAGE touch $files + CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman run --rm --read-only=false --read-only-tmpfs=true $IMAGE touch $files + CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman run --rm --read-only-tmpfs=true $IMAGE touch $files + + CONTAINERS_CONF_OVERRIDE="$containersconf" run_podman 1 run --rm --read-only-tmpfs=false $IMAGE touch $files + assert "$output" == "touch: /tmp/a: Read-only file system +touch: /var/tmp/b: Read-only file system +touch: /dev/c: Read-only file system +touch: /dev/shm/d: Read-only file system +touch: /run/e: Read-only file system" } @test "podman run ulimit from containers.conf" {