mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
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:
parent
828b603a79
commit
cf9844ffab
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue