]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/test-execute/exec-readwritepaths-mount-propagation.service
tests: stop creating /TEST (#5943)
[thirdparty/systemd.git] / test / test-execute / exec-readwritepaths-mount-propagation.service
CommitLineData
cdfbd1fb
DH
1[Unit]
2Description=Test to make sure that passing ReadWritePaths= disconnect mount propagation
3
4[Service]
5ReadWritePaths=-/i-dont-exist
b8d79b4b 6ExecStart=/bin/sh -x -c 'd=$$(mktemp -d -p /tmp); trap "umount \'$$d\' && rmdir \'$$d\'" EXIT; mount -t tmpfs tmpfs "$$d"; grep "$$d" /proc/self/mountinfo && ! grep "$$d" /proc/$${PPID}/mountinfo && ! grep "$$d" /proc/1/mountinfo'
cdfbd1fb 7Type=oneshot