diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-01-04 15:24:52 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-01-09 11:14:16 +0100 |
commit | 63403f07b037ea80d08b917e3d95037c9620ded5 (patch) | |
tree | 8ad79098a16c6a3dfb37c620a6c3331622862da4 /test/test-execute/exec-readonlypaths-with-bindpaths.service | |
parent | cocci: merge mfree.cocci and mfree_return.cocci (#30838) (diff) | |
download | systemd-63403f07b037ea80d08b917e3d95037c9620ded5.tar.xz systemd-63403f07b037ea80d08b917e3d95037c9620ded5.zip |
tests: use relative paths in ExecStart= and friends
We want to retain *some* of the full paths in order to test more code paths.
But the default should be to use the command name only. This makes the tests
less visually cluttered.
Diffstat (limited to 'test/test-execute/exec-readonlypaths-with-bindpaths.service')
-rw-r--r-- | test/test-execute/exec-readonlypaths-with-bindpaths.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-execute/exec-readonlypaths-with-bindpaths.service b/test/test-execute/exec-readonlypaths-with-bindpaths.service index 71c7e7b926..7a183672c7 100644 --- a/test/test-execute/exec-readonlypaths-with-bindpaths.service +++ b/test/test-execute/exec-readonlypaths-with-bindpaths.service @@ -5,5 +5,5 @@ Description=Test for ReadOnlyPaths= [Service] ReadOnlyPaths=/etc -/i-dont-exist /usr BindPaths=/etc:/tmp/etc2 -ExecStart=/bin/sh -x -c 'test ! -w /etc && test ! -w /usr && test ! -e /i-dont-exist && test -w /var' +ExecStart=sh -x -c 'test ! -w /etc && test ! -w /usr && test ! -e /i-dont-exist && test -w /var' Type=oneshot |