1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-27 01:57:35 +03:00
systemd/test/units/testsuite-44.sh
Frantisek Sumsal 07268394d6 test: unify /testok & /failed handling
And drop it where not necessary.
2023-07-12 16:03:40 +02:00

19 lines
432 B
Bash
Executable File

#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
systemd-analyze log-level debug
systemd-run --wait -p LogNamespace=foobar echo "hello world"
journalctl --namespace=foobar --sync
journalctl -o cat --namespace=foobar >/tmp/hello-world
journalctl -o cat >/tmp/no-hello-world
grep "^hello world$" /tmp/hello-world
(! grep "^hello world$" /tmp/no-hello-world)
systemd-analyze log-level info
touch /testok