diff --git a/tests/integration/mounts_sshfs.bats b/tests/integration/mounts_sshfs.bats index 0bef01784..10a2c19b2 100644 --- a/tests/integration/mounts_sshfs.bats +++ b/tests/integration/mounts_sshfs.bats @@ -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"