HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

test/test-execute/exec-standardoutput-append.service

Git blob: 563d3eba77b476ec6ea3cf8df7ed893f7ba95301

Lines 1–15 of 15

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for StandardOutput=append:
 
[Service]
ExecStartPre=bash -c 'printf "hello\n" >/tmp/test-exec-standardoutput-output'
ExecStartPre=bash -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