]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-22-TMPFILES: fix broken test exposed by condition check fix
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 7 Apr 2021 21:32:14 +0000 (23:32 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 8 Apr 2021 09:46:07 +0000 (11:46 +0200)
test/units/testsuite-22.03.sh

index c86569973177f101fa28ec01008f9cb5ae731b96..5e3b1ead1982ffeeaaeee49256f0301bc4b392a8 100755 (executable)
@@ -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