test: use systemd-run --wait in TEST-44-LOG-NAMESPACE
authorLuca Boccassi <bluca@debian.org>
Wed, 14 Apr 2021 20:26:50 +0000 (21:26 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 May 2021 12:51:07 +0000 (14:51 +0200)
commit2c17e13ae48b94a0fd02c7746d723b26a0f3dc65
treefca0e541d10d975b9143ff0a36c52ddeea46e9fb
parentcd1fc467f72e607bcd2464651b68f31bd2a8791a
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.

(cherry picked from commit cf9844ffabd7fd51f22e729692b79d55cd7bdd76)
test/units/testsuite-44.sh