mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
test: don't restart journal-upload on an expected fail
In c08bec1587 the journal-upload unit gained Restart=on-fail, which goes
against this one particular test that expects the unit to fail, making
the test flaky. Let's disable the automatic restarts just for this test
to make it stable once again.
This commit is contained in:
committed by
Luca Boccassi
parent
74b2c22fd7
commit
41231bec0c
@@ -209,6 +209,12 @@ ServerCertificateFile=/run/systemd/journal-remote-tls/cert.pem
|
||||
TrustedCertificateFile=/run/systemd/remote-pki/ca.crt
|
||||
EOF
|
||||
systemd-analyze cat-config systemd/journal-upload.conf
|
||||
mkdir -p /run/systemd/system/systemd-journal-upload.service.d
|
||||
cat >/run/systemd/system/systemd-journal-upload.service.d/99-test.conf <<EOF
|
||||
[Service]
|
||||
Restart=no
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
setfacl -R -m "u:systemd-journal-upload:rwX" /run/systemd/journal-remote-tls
|
||||
|
||||
systemctl restart systemd-journal-upload
|
||||
|
||||
Reference in New Issue
Block a user