chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests: add test-execute
[elogind.git]
/
test
/
exec-workingdirectory.service
diff --git a/test/exec-workingdirectory.service
b/test/exec-workingdirectory.service
new file mode 100644
(file)
index 0000000..
10855d6
--- /dev/null
+++ b/
test/exec-workingdirectory.service
@@ -0,0
+1,7
@@
+[Unit]
+Description=Test for WorkingDirectory
+
+[Service]
+ExecStart=/bin/sh -c 'echo $PWD; exit $(test $PWD = "/tmp/test-exec_workingdirectory")'
+Type=oneshot
+WorkingDirectory=/tmp/test-exec_workingdirectory