summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-standardoutput-append.service
blob: 8983bb056b23457d6ff0891ab5f44f86f1d690ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=Test for StandardOutput=append:

[Service]
ExecStartPre=sh -c 'printf "hello\n" > /tmp/test-exec-standardoutput-output'
ExecStartPre=sh -c 'printf "hello\nhello\n" > /tmp/test-exec-standardoutput-expected'
StandardInput=data
StandardInputText=hello
StandardOutput=append:/tmp/test-exec-standardoutput-output
StandardError=null
ExecStart=cat
ExecStart=cmp /tmp/test-exec-standardoutput-output /tmp/test-exec-standardoutput-expected
Type=oneshot