1
0
mirror of https://github.com/systemd/systemd.git synced 2025-10-25 03:33:38 +03:00

test: add tests for simple ReadOnlyPaths= case

This commit is contained in:
Djalal Harouni
2016-09-25 19:24:25 +02:00
parent 615a1f4b26
commit f78b36f016
3 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
[Unit]
Description=Test for ReadOnlyPaths=
[Service]
ReadOnlyPaths=/etc -/i-dont-exist /usr
ExecStart=/bin/sh -x -c 'test ! -w /etc && test ! -w /usr && test ! -e /i-dont-exist && test -w /var'
Type=oneshot