diff options
Diffstat (limited to 'test/units/testsuite-23.RuntimeDirectoryPreserve.sh')
-rwxr-xr-x | test/units/testsuite-23.RuntimeDirectoryPreserve.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/units/testsuite-23.RuntimeDirectoryPreserve.sh b/test/units/testsuite-23.RuntimeDirectoryPreserve.sh index b60b612d82..ca57702cf1 100755 --- a/test/units/testsuite-23.RuntimeDirectoryPreserve.sh +++ b/test/units/testsuite-23.RuntimeDirectoryPreserve.sh @@ -7,6 +7,14 @@ set -o pipefail # Test RuntimeDirectoryPreserve=yes +at_exit() { + set +e + + rm -fr /run/hoge /tmp/aaa +} + +trap at_exit EXIT + systemd-mount -p RuntimeDirectory=hoge -p RuntimeDirectoryPreserve=yes -t tmpfs tmpfs /tmp/aaa touch /run/hoge/foo |