Skip to content

Commit 5052c07

Browse files
committed
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 <[email protected]>
1 parent 5e0ec3f commit 5052c07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/integration/mounts_sshfs.bats

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,11 @@ function fail_sshfs_bind_flags() {
393393
pass_sshfs_bind_flags "nodiratime" "bind"
394394
run -0 grep -wq nodiratime <<<"$mnt_flags"
395395
# MS_DIRATIME implies MS_RELATIME by default.
396-
run -0 grep -wq relatime <<<"$mnt_flags"
396+
# Let's check either relatime is set or no other option that removes
397+
# relatime semantics is set.
398+
# The latter case is needed in debian. For more info, see issue: #4093
399+
run -0 grep -wq relatime <<<"$mnt_flags" ||
400+
(run ! grep -wqE 'strictatime|norelatime|noatime' <<<"$mnt_flags")
397401

398402
pass_sshfs_bind_flags "noatime,nodiratime" "bind"
399403
run -0 grep -wq noatime <<<"$mnt_flags"

0 commit comments

Comments
 (0)