mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +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
265 B
Desktop File
9 lines
265 B
Desktop File
[Unit]
|
|
Description=Test for PassEnvironment with a variable name repeated
|
|
|
|
[Service]
|
|
ExecStart=/bin/sh -x -c 'test "$$VAR1" = "word1 word2" && test "$$VAR2" = word3 && test "$$VAR3" = "\\$$word 5 6"'
|
|
Type=oneshot
|
|
PassEnvironment=VAR1 VAR2
|
|
PassEnvironment=VAR1 VAR3
|