summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-passenvironment-absent.service
diff options
context:
space:
mode:
authorJoost Heitbrink <joostheitbrink@outlook.com>2018-05-10 15:28:10 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-05-11 13:15:16 +0900
commitb6887d7ae470cf6dfa9ba1b33840628362d9d0fc (patch)
treeae862883f49a8576e193b7e5099daeeed9c288b4 /test/test-execute/exec-passenvironment-absent.service
parenta9a2f9b0b1d5b712f44d67658f556d56c323465d (diff)
downloadsystemd-b6887d7ae470cf6dfa9ba1b33840628362d9d0fc.tar.gz
test: add testcase for environment file variables with backslashes
systemd silently strips out backslashes in variables from environment files. Add a testcase that explicitly tests for this behaviour.
Diffstat (limited to 'test/test-execute/exec-passenvironment-absent.service')
-rw-r--r--test/test-execute/exec-passenvironment-absent.service4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-execute/exec-passenvironment-absent.service b/test/test-execute/exec-passenvironment-absent.service
index 4a82206a2c..d257e48cda 100644
--- a/test/test-execute/exec-passenvironment-absent.service
+++ b/test/test-execute/exec-passenvironment-absent.service
@@ -2,6 +2,6 @@
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" && test "$${VAR4-unset}" = "unset"'
+ExecStart=/bin/sh -x -c 'test "$${VAR1-unset}" = "unset" && test "$${VAR2-unset}" = "unset" && test "$${VAR3-unset}" = "unset" && test "$${VAR4-unset}" = "unset" && test "$${VAR5-unset}" = "unset"'
Type=oneshot
-PassEnvironment=VAR1 VAR2 VAR3 VAR4
+PassEnvironment=VAR1 VAR2 VAR3 VAR4 VAR5