#!/usr/bin/env bash # SPDX-License-Identifier: LGPL-2.1-or-later # shellcheck disable=SC2016 set -eux set -o pipefail # shellcheck source=test/units/util.sh . "$(dirname "$0")"/util.sh systemd-run --help --no-pager systemd-run --version systemd-run --no-ask-password true systemd-run --no-block --collect true export PARENT_FOO=bar touch /tmp/public-marker : "Transient service (system daemon)" systemd-run --wait --pipe \ bash -xec '[[ "$( "$V" mount --bind "$V" /proc/version B=$(systemd-run -q --wait --pipe -p ProtectProc=invisible cat /proc/version) assert_eq "$A" "$B" umount /proc/version rm "$V"