From: Luca Boccassi Date: Wed, 14 Apr 2021 20:26:50 +0000 (+0100) Subject: test: use systemd-run --wait in TEST-44-LOG-NAMESPACE X-Git-Tag: v249-rc1~411 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf9844ffabd7fd51f22e729692b79d55cd7bdd76;p=thirdparty%2Fsystemd.git test: use systemd-run --wait in TEST-44-LOG-NAMESPACE The test appears to be occasionally failing. It uses systemd-run to echo 'hello world' into a namespaced journal and then uses journalctl to look for it, but it doesn't wait. In the failed runs it can't find it, but the automated journal dump shows the message at the end. Use --wait to avoid races. --- diff --git a/test/units/testsuite-44.sh b/test/units/testsuite-44.sh index 50b5c3046f2..0100b31b576 100755 --- a/test/units/testsuite-44.sh +++ b/test/units/testsuite-44.sh @@ -3,7 +3,7 @@ set -eux systemd-analyze log-level debug -systemd-run -p LogNamespace=foobar echo "hello world" +systemd-run --wait -p LogNamespace=foobar echo "hello world" journalctl --namespace=foobar --sync journalctl -o cat --namespace=foobar >/tmp/hello-world