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.
This commit is contained in:
Luca Boccassi 2021-04-14 21:26:50 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 828b603a79
commit cf9844ffab

View file

@ -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