]>
Commit | Line | Data |
---|---|---|
22d3cfe5 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
566b7d23 ZD |
2 | [Unit] |
3 | Description=Test for StandardOutput=file: | |
4 | ||
5 | [Service] | |
0ee99483 ZJS |
6 | ExecStartPre=sh -c 'printf "nooo\nhello\n" >/tmp/test-exec-standardoutput-output' |
7 | ExecStartPre=sh -c 'printf "hello\nello\n" >/tmp/test-exec-standardoutput-expected' | |
566b7d23 ZD |
8 | StandardInput=data |
9 | StandardInputText=hello | |
10 | StandardOutput=file:/tmp/test-exec-standardoutput-output | |
11 | StandardError=null | |
12 | ExecStart=cat | |
13 | ExecStart=cmp /tmp/test-exec-standardoutput-expected /tmp/test-exec-standardoutput-output | |
14 | Type=oneshot |