test-execute: add tests with user/group daemon

The nobody user/group may not synthesized by systemd.
To run tests the functionalities in such situation, this adds tests
by user/group by daemon, as it is expected to exists all environments.
This commit is contained in:
Yu Watanabe
2018-03-02 16:42:53 +09:00
parent d2f95a223f
commit 69b0740785
14 changed files with 118 additions and 56 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
[Unit]
Description=Test for User
Description=Test for User (daemon)
[Service]
ExecStart=/bin/sh -x -c 'test "$$USER" = "nobody"'
ExecStart=/bin/sh -x -c 'test "$$USER" = "daemon"'
Type=oneshot
User=nobody
User=daemon