summaryrefslogtreecommitdiff
path: root/test/test-execute
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-05-29 11:25:26 +0200
committerLennart Poettering <lennart@poettering.net>2018-05-29 11:39:15 +0200
commitb294e5943f06bc96e2898e769cfe610bbf10b767 (patch)
treee6b7188d1af3b78d88a5ca6d60849cddf7bf5a93 /test/test-execute
parent709f4c472cd907d0924fdf4982e4a4d49e44ec4d (diff)
downloadsystemd-b294e5943f06bc96e2898e769cfe610bbf10b767.tar.gz
core: introduce specifiers for /tmp and /var/tmp
This corresponds nicely with the specifiers we already pass for /var/lib, /var/cache, /run and so on. This is particular useful to update the test-path service files to operate without guessable files, thus allowing multiple parallel test-path invocations to pass without issues (the idea is to set $TMPDIR early on in the test to some private directory, and then only use the new %T or %V specifier to refer to it).
Diffstat (limited to 'test/test-execute')
-rw-r--r--test/test-execute/exec-specifier.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-execute/exec-specifier.service b/test/test-execute/exec-specifier.service
index 926d45182b..e46373ddfe 100644
--- a/test/test-execute/exec-specifier.service
+++ b/test/test-execute/exec-specifier.service
@@ -16,6 +16,8 @@ ExecStart=test %t = /run
ExecStart=test %S = /var/lib
ExecStart=test %C = /var/cache
ExecStart=test %L = /var/log
+ExecStart=test %T = /tmp
+ExecStart=test %V = /var/tmp
ExecStart=sh -c 'test %u = $$(id -un 0)'
ExecStart=test %U = 0
ExecStart=sh -c 'test %h = $$(getent passwd 0 | cut -d: -f 6)'