summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-workingdirectory.service
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-execute/exec-workingdirectory.service')
-rw-r--r--test/test-execute/exec-workingdirectory.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-execute/exec-workingdirectory.service b/test/test-execute/exec-workingdirectory.service
index 10855d682a..fe3c420d2d 100644
--- a/test/test-execute/exec-workingdirectory.service
+++ b/test/test-execute/exec-workingdirectory.service
@@ -2,6 +2,6 @@
Description=Test for WorkingDirectory
[Service]
-ExecStart=/bin/sh -c 'echo $PWD; exit $(test $PWD = "/tmp/test-exec_workingdirectory")'
+ExecStart=/bin/sh -x -c 'test "$$PWD" = "/tmp/test-exec_workingdirectory"'
Type=oneshot
WorkingDirectory=/tmp/test-exec_workingdirectory