From cf9844ffabd7fd51f22e729692b79d55cd7bdd76 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Wed, 14 Apr 2021 21:26:50 +0100 Subject: [PATCH] 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. --- test/units/testsuite-44.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/testsuite-44.sh b/test/units/testsuite-44.sh index 50b5c3046f..0100b31b57 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 -- 2.25.1