diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-11 14:07:53 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-13 17:02:58 +0900 |
commit | 6088662d57bbd81167bd272d385fdd1044b287ec (patch) | |
tree | 6135e3c8a44e1f168326806e149941c38fc5fb21 /test/test-execute/exec-runtimedirectory-mode.service | |
parent | fb2042dd55de5019f55931b4f20a44700ec1222b (diff) | |
download | systemd-6088662d57bbd81167bd272d385fdd1044b287ec.tar.gz |
test-execute: add tests for $RUNTIME_DIRECTORY= or friends
Diffstat (limited to 'test/test-execute/exec-runtimedirectory-mode.service')
-rw-r--r-- | test/test-execute/exec-runtimedirectory-mode.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test-execute/exec-runtimedirectory-mode.service b/test/test-execute/exec-runtimedirectory-mode.service index 480f904155..85ae5161c4 100644 --- a/test/test-execute/exec-runtimedirectory-mode.service +++ b/test/test-execute/exec-runtimedirectory-mode.service @@ -3,6 +3,7 @@ Description=Test for RuntimeDirectoryMode [Service] ExecStart=/bin/sh -x -c 'mode=$$(stat -c %%a %t/test-exec_runtimedirectory-mode); test "$$mode" = "750"' +ExecStart=/bin/sh -x -c 'test "$$RUNTIME_DIRECTORY" = "%t/test-exec_runtimedirectory-mode"' Type=oneshot RuntimeDirectory=test-exec_runtimedirectory-mode RuntimeDirectoryMode=0750 |