mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09: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.
9 lines
274 B
Desktop File
9 lines
274 B
Desktop File
[Unit]
|
|
Description=Test for PassEnvironment and erasing the variable list
|
|
|
|
[Service]
|
|
ExecStart=/bin/sh -x -c 'test "$${VAR1-unset}" = "unset" && test "$${VAR2-unset}" = "unset" && test "$${VAR3-unset}" = "unset"'
|
|
Type=oneshot
|
|
PassEnvironment=VAR1 VAR2 VAR3
|
|
PassEnvironment=
|