mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
tests/integration/mounts_sshfs.bats: Fix test on debian testing
relatime is not shown on some debian systems. Let's check that no other setting that removes the relatime effect is set, as that should be enough too. For more info, see the issue linked in the comments. Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
This commit is contained in:
@@ -393,7 +393,11 @@ function fail_sshfs_bind_flags() {
|
||||
pass_sshfs_bind_flags "nodiratime" "bind"
|
||||
run -0 grep -wq nodiratime <<<"$mnt_flags"
|
||||
# MS_DIRATIME implies MS_RELATIME by default.
|
||||
run -0 grep -wq relatime <<<"$mnt_flags"
|
||||
# Let's check either relatime is set or no other option that removes
|
||||
# relatime semantics is set.
|
||||
# The latter case is needed in debian. For more info, see issue: #4093
|
||||
run -0 grep -wq relatime <<<"$mnt_flags" ||
|
||||
(run ! grep -wqE 'strictatime|norelatime|noatime' <<<"$mnt_flags")
|
||||
|
||||
pass_sshfs_bind_flags "noatime,nodiratime" "bind"
|
||||
run -0 grep -wq noatime <<<"$mnt_flags"
|
||||
|
||||
Reference in New Issue
Block a user