mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 16:21:26 +03:00
4c80d201ac
Check the base case, plus erasing the list, listing the same variable name more than once and when variables are absent from the manager execution environment. Confirmed that `sudo ./test-execute` passes and that modifying the test cases (or the values of the set variables in test-execute.c) is enough to make the test cases fail.
8 lines
280 B
Desktop File
8 lines
280 B
Desktop File
[Unit]
|
|
Description=Test for PassEnvironment with variables absent from the execution environment
|
|
|
|
[Service]
|
|
ExecStart=/bin/sh -x -c 'test "$${VAR1-unset}" = "unset" && test "$${VAR2-unset}" = "unset" && test "$${VAR3-unset}" = "unset"'
|
|
Type=oneshot
|
|
PassEnvironment=VAR1 VAR2 VAR3
|