From: Frantisek Sumsal Date: Tue, 17 Oct 2023 10:49:03 +0000 (+0200) Subject: test: don't restart journal-upload on an expected fail X-Git-Tag: v255-rc1~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41231bec0cafda40b3e560deafd217e791c51590;p=thirdparty%2Fsystemd.git 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. --- diff --git a/test/units/testsuite-04.journal-remote.sh b/test/units/testsuite-04.journal-remote.sh index c0b95caec34..c543129da95 100755 --- a/test/units/testsuite-04.journal-remote.sh +++ b/test/units/testsuite-04.journal-remote.sh @@ -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 <