diff options
author | Luca Boccassi <bluca@debian.org> | 2021-04-14 21:26:50 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-05-15 19:32:37 +0200 |
commit | bed66a8d19566adf94386482fe5ee0216b66f848 (patch) | |
tree | 58d6bacbfc12a8a89e1678b4b58bd342cc1e58a6 | |
parent | 3def84156c37b9a873c29bb93afe5ddaa341c698 (diff) | |
download | systemd-bed66a8d19566adf94386482fe5ee0216b66f848.tar.gz |
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)
(cherry picked from commit 2c17e13ae48b94a0fd02c7746d723b26a0f3dc65)
-rwxr-xr-x | test/units/testsuite-44.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/units/testsuite-44.sh b/test/units/testsuite-44.sh index 97541634d0..52bc2a4a15 100755 --- a/test/units/testsuite-44.sh +++ b/test/units/testsuite-44.sh @@ -3,7 +3,7 @@ set -ex 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 --namespace=foobar > /tmp/hello-world |