mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +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
214 B
Desktop File
8 lines
214 B
Desktop File
[Unit]
|
|
Description=Test for PassEnvironment
|
|
|
|
[Service]
|
|
ExecStart=/bin/sh -x -c 'test "$$VAR1" = "word1 word2" && test "$$VAR2" = word3 && test "$$VAR3" = "\\$$word 5 6"'
|
|
Type=oneshot
|
|
PassEnvironment=VAR1 VAR2 VAR3
|