1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

TEST-22-TMPFILES: fix broken test exposed by condition check fix

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-04-07 23:32:14 +02:00
parent ffa328f060
commit 4e324ce42c

View File

@ -157,7 +157,8 @@ EOF
! systemd-tmpfiles --create - <<EOF
F /tmp/F/ro-fs/foo 0644 - - - - This string should not be written
EOF
test -f /tmp/F/ro-fs/foo; test ! -s /tmp/F/ro-fs/foo
test -f /tmp/F/ro-fs/foo
grep -q 'truncating is not allowed' /tmp/F/ro-fs/foo
# Trying to change the perms should fail.
>/tmp/F/rw-fs/foo