#!/usr/bin/env bash # SPDX-License-Identifier: LGPL-2.1-or-later set -eux set -o pipefail # Test StandardOutput=file: systemd-analyze log-level debug systemd-run --wait --unit=testsuite-23-standard-output-one \ -p StandardOutput=file:/tmp/stdout \ -p StandardError=file:/tmp/stderr \ -p Type=exec \ sh -c 'echo x ; echo y >&2' cmp /tmp/stdout <&2' cmp /tmp/stdout <&2' cmp /tmp/stdout <&2' cmp /tmp/stdout <