Skip to content

Commit

Permalink
test: check for rw mounts
Browse files Browse the repository at this point in the history
in test called "check for rw mounts"

Signed-off-by: Peter Hunt <pehunt@redhat.com>
  • Loading branch information
haircommander committed Apr 24, 2020
1 parent 2c4df78 commit 78badc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/ctr.bats
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,9 @@ function wait_until_exit() {
run crictl start "$ctr_id"
[ "$status" -eq 0 ]

run crictl exec "$ctr_id" grep ro\, /proc/mounts
# TODO there seems to be a difference in behavior between runc and crun
# where crun has this mounted ro, and now runc has it mounted rw
run crictl exec "$ctr_id" cat /proc/mounts
[ "$status" -eq 0 ]
if test $(stat -f -c%T /sys/fs/cgroup) = cgroup2fs; then
[[ "$output" =~ "/sys/fs/cgroup cgroup2" ]]
Expand Down

0 comments on commit 78badc8

Please sign in to comment.